ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   12 Numbers   12.2 Dictionary of Numbers

12.2.20 sin, cos, tan Function

Syntax:
sin radians    number

cos radians    number

tan radians    number

Arguments and Values:
radians - a number given in radians.

number - a number.

Description:
sin, cos, and tan return the sine, cosine, and tangent, respectively, of radians.

Examples:
 (sin 0)  0.0
 (cos 0.7853982)  0.707107
 (tan #c(0 1))  #C(0.0 0.761594)

Exceptional Situations:
Should signal an error of type type-error if radians is not a number. Might signal arithmetic-error.

See Also:
asin, acos, atan, Section 12.1.3.3 Rule of Float Substitutability

Allegro CL Implementation Details:
None.

Home Previous Up Next Table of Contents Index
© Franz Inc. All Rights Reserved - File last updated 2022-07-25