User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cl:functions:sin [2019/09/14 05:00]
cl:functions:sin [2019/09/20 16:00] (current)
Line 1: Line 1:
 +====== Function SIN, COS, TAN ======
 +
 +====Syntax====
 +  * **sin** //radians// → //​number// ​
 +  * **cos** //radians// → //​number// ​
 +  * **tan** //radians// → //number//
 +
 +====Arguments and Values====
 +  * //radians// - a //​[[CL:​Glossary:​number]]//​ given in radians.
 +  * //number// - a //​[[CL:​Glossary:​number]]//​.
 +
 +====Description====
 +**sin**, **cos**, and **tan** return the sine, cosine, and tangent, respectively,​ of //​radians//​.
 +
 +====Examples====
 +<​blockquote>​
 +(sin 0) <​r>​0.0</​r>​
 +(cos 0.7853982) <​r>​0.707107</​r>​
 +(tan #c(0 1)) <​r>#​C(0.0 0.761594)</​r>​
 +</​blockquote>​
 +
 +====Side Effects====
 +None.
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +Should signal an error of type type-error if //radians// is not a //​[[CL:​Glossary:​number]]//​. Might signal **[[CL:​Types:​arithmetic-error]]**.
 +
 +====See Also====
 +  * **[[CL:​Functions:​asin|Function ASIN]]**
 +  * **[[CL:​Functions:​acos|Function ACOS]]**
 +  * **[[CL:​Functions:​atan|Function ATAN]]**
 +  * {\secref\FloatSubstitutability}
 +
 +====Notes====
 +None.