Function sin
Source pub fn sin(x: number) -> number
Expand description
Returns the sine of a number given in radians.
§Parameters
§Return value
The sine of x, as a float in the range [−1, 1].
§Examples
print(math.sin(0)) --> 0.0
print(math.sin(math.pi / 2)) --> 1.0
§See also
cos, tan, asin, rad