(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 |
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 |