3.5.1.2.17 Cos

Description

The cos(x) function returns value of cosine for each value of the given x. This and other trigonometric functions can take values in radians, degrees, and gradian. The units are determined by the system.math.angularunits object property (which can also be set in the Options dialog box).

Syntax

double cos(double x)

Parameter

x

can be any real number.

Return

Returns value of cosine of x.

Example

cos(10) = ; //should return -0.83907152907645

See Also

sin, tan, cot, secant, csc