PickBASIC / FlashBASIC
cos() function
.mdThe cos() function calculates the trigonometric cosine of an angle of a specified numeric expression in the range 0 to 360 degrees.
Syntax
cos(num.exp)Parameter(s)
| num.exp | Angle from 0 through 360 from which the trigonometric cosine is to be calculated. |
Description
Values that are less than 0
or greater than 360 are adjusted using the integer division function: mod(angle, 360).
Example(s)
Cosine of an angle in degrees
print cos(0) ;* 1
See also
Referenced by
3 topics mention cos() function in its description.