sin()

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

This function is valid in v2.0.0 to v2.12.0. This function has been downloaded 14 times.

Parameters

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