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.

cos

cos

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

SYNTAX

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

DESCRIPTION

The cos function returns the cosine of the <expr>. The <expr> is in radians.

EXAMPLES

(cos 0.0)                               ; returns 1
(cos (/ 3.14159 2))                     ; returns 1.32679e-06 (almost 0)
(cos .5)                                ; returns 0.877583
(cos 0)                                 ; error: bad integer operation
(cos 1.)                                ; error: bad integer operation


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