Cos

Calculates the cosine.

Syntax:

Cos( x )

Parameters:

(f) x: angle in radians.

Returns:

(f) the Cos function returns the cosine of x.

 

Calculates the cosine. If x is large, a loss in significance in the result or a significance error may occur.

Note: To convert an angle measured in degrees to radians, simply multiply by the constant @Deg2Rad.

 

Example:


real=AskLine("Cosine", "Enter an angle in degrees ( 0 to 360)", "45", 0)
answer=Cos(real * @DEG2RAD)
Message("Cosine of %real% degrees is",answer)
See Also:

Acos, Asin, Atan, Cosh, Sin, Tan