Cosine Function

Top  Previous  Next

Returns the arc sine of an angle specified in radians. The range of the result is 0 to PI radians. To convert angle from radians to degrees use RadiansToDegrees function.

 

Short form: "cos".

 

Syntax

 

value = Cosine( expression )

 

iParameters

expression

 

any expression that resolves to an angle in radians

 

 

 

returns

 

the cosine of expression

 

Examples

 

value = Cosine( PI )                     ' Returns 1.0.

value = Cosine( PI / 2 )                 ' Returns 0.0 approximately.