(cos angle)


Calculate the cosine.


This function returns the cosine of an angle. The angle must be in radian form, and the result is a real number.

Examples

Code Returns
(cos pi) -1.000000
(cos 1.5) 0.0707372
(cos (/ pi 2)) 0.000000

Tell me about...

(atan number1 [number2])

(sin angle)

(tan angle)

LISP Compatibility

pi

Programming Overview of LISP (LISt Processing) Language