3.5.1.2.17 Cos

Contents

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 (which can also be set in ).

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

, , , ,