Function Reference


Cos

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


Local $pi = 3.14159265358979
Local $x = Cos($pi / 4)

Local $degToRad = $pi / 180
Local $y = Cos(90 * $degToRad) ;cosine of 90°