Skip to main content

COS

COS(angle)

angleThe REAL radian value for which to find the cosine.
Return:COS returns a single REAL value.

The COS function returns the cosine of the angle.

Example:

Rad2Deg := 57.295779513082; //number of degrees in a radian

Deg2Rad := 0.0174532925199; //number of radians in a degree

Angle45 := 45 * Deg2Rad;    //translate 45 degrees into radians

Cosine45 := COS(Angle45);   //get cosine of the 45 degree angle

See Also: ACOS, SIN, TAN, ASIN, ATAN, COSH, SINH, TANH