sin(rad)
Calculates the sine of an angle. This function expects the values of the angle parameter to be provided in radians (values from 0
to 6.28
). Values are returned in the range -1
to 1
.
Type: function
Parameter(s):
- rad {Number}:
A value in radians.
Returns:
-
{Number}:
The sine value.