COS function

Syntax

COS (expression)

Description

Use the COS function to return the trigonometric cosine of an angle. expression is an angle expressed as a numeric value in degrees. The COS function is the inverse of the ACOS function.

Values outside the range of 0 to 360 degrees are interpreted as modulo 360. Numbers greater than 1E17 produce a warning message and 0 is returned. If expression evaluates to the null value, null is returned.

Example

PRINT "COS(45) = " : COS(45)
END

This is the program output:

COS(45) = 0.7071