cos

The cos method returns the cosine of a number.

 

Syntax

System.Double cos(System.Double x);

 

Parameters

x

Angle in radians.

 

Return Value

Returns the returns a numeric value between -1 and 1, which represents the cosine of the angle.

 

Remarks

Member of Math.

 

Example