XLISP atan

Nyquist / XLISP 2.0 - Contents | Tutorials | Examples | Reference

# atan

Type: | - | function (subr)
Source: | - | xlmath.c

## Syntax

(atan expr [expr2])
  expr - an integer or floating point expression
  expr2 - an optional divisor [default value is 1.0]
  returns - the arctangent of the division of expr and expr2

## Description

The 'atan' function returns the arc tangent of the division of 'expr' and 'expr2'. The result is in radians.

## Examples

    (atan  0.0)  =>  0
    (atan  1.0)  =>  0.785398
    (atan -1.0)  => -0.785398
    (atan    0)  =>  0

See also:

- Contents → Arithmetic Functions

Back to Top

Nyquist / XLISP 2.0 - Contents | Tutorials | Examples | Reference