COS Function

The COS function returns the trigonometric cosine of the expression.

Format

COS(expr)

Parameter(s)

expr

Treated as an angle expressed as a numeric value in degrees. Values outside the range of 0 to 360 degrees are interpreted as modulo 360.

Example

In this application the COS function is used with a standard trigonometric formula to calculate the sin of an angle without using the SIN function.

SINE = SQRT(1 - COS(ANGLE) * COS(ANGLE))

PRINT " THE SINE IS CALCULATED AS : " : SINE

See Also

Statement and Function Reference