cos()

Determines the cosine of a given number either in radians or in degrees.

This function is valid in v2.0.0 to v2.14.0. This function has been downloaded 46 times.

Parameters

{number} angle
The angle whose cosine value should be returned.
{boolean=} opt_usingDegrees Optional, Default:false
If true then angle will be interpreted in degrees, otherwise angle will be interpreted in radians.

Returns

{number}
The cosine of angle in radians by default, but if opt_usingDegrees is a true-ish value then the cosine of angle in degrees will be returned.

Required Function

This function requires the following function which is included automatically:

  • sec()
    Determines the secant of a given number either in radians or in degrees.