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.

sin

sin

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

SYNTAX

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

DESCRIPTION

The SIN function returns the sine of the <expr>. The <expr> is in radians.

EXAMPLES

(sin 0.0)                               ; returns 0
(sin .5)                                ; returns 0.479426
(sin 1.0)                               ; returns 0.841471
(sin (/ 3.14159 2))                     ; returns 1
(sin 3.14159)                           ; returns 2.65359e-06
(sin 0)                                 ; error: bad integer operation
(sin 1.)                                ; error: bad integer operation

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


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