Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

tan

tan

type: function (subr) 
location: built-in
source file: xlmath.c
Common LISP compatible: similar
supported on: all machines

SYNTAX

(tan <expr> )
        <expr>          -       floating point number/expression

DESCRIPTION

The TAN function calculates the tangent of the <expr> and returns the result. The <expr> is in radians.

EXAMPLES

(tan 0.0)                               ; returns 0
(tan 1.0)                               ; returns 1.55741
(tan (/ 3.14159 2))                     ; returns 753696
(tan 2.0)                               ; returns -2.18504
(tan 3.0)                               ; returns -0.142547
(tan 3.14159)                           ; returns -2.65359e-06
(tan 4.5)                               ; returns 4.63733

COMMON LISP COMPATIBILITY: Common LISP allows for integer numbers, which XLISP does not support for TAN.


Go to the first, previous, next, last section, table of contents.