The mathSin() function returns the sine of a number.
mathSin()
0.12.0
A number (given in radians)
The sine of the given number
mathSin(0); // 0mathSin(Math.PI / 2); // 1mathSin(Math.PI); // 0 (approximately) Copy
mathSin(0); // 0mathSin(Math.PI / 2); // 1mathSin(Math.PI); // 0 (approximately)
Returns the sine of a number.
A numeric expression that contains an angle measured in radians.
The
mathSin()
function returns the sine of a number.Since
0.12.0
Param: x
A number (given in radians)
Returns
The sine of the given number
Example