XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next

acos


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

Syntax

(acos expr)
expr - floating point number/expression
returns - the arccosine of the number

Description

The 'acos' function returns the arc cosine of the 'expr'. The result is in radians.

Examples

(acos  0.0)   ; returns 1.5708
(acos  1.0)   ; returns 0.0
(acos -1.0)   ; returns 3.14159
(acos    0)   ; error: bad integer operation

See the acos function in the XLISP 2.0 manual.

  Back to Top


XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next