Calculates the cosine of a number.
Cos ( expression )
Parameters
expression | Value in radians. |
Return Value
Returns the trigonometric cosine of number.
Remarks
1░ = pi / 180 radians.
Related
Sin, Tan, ASin, ACos, ATan
Example
$pi = 3.14159265358979
$x = cos($pi / 4)
$degToRad = $pi / 180
$y = Cos(90 * $degToRad) ;cosine of 90░