cot()

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

This function is valid in v2.0.0 to v2.13.3. This function has been downloaded 41 times.

Parameters

{number} angle
The angle whose cotangent 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 cotangent of angle in radians by default, but if opt_usingDegrees is a true-ish value then the cotangent 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.