sin
host callCapy
function sin(value : f32) f32 function sin(value : f64) f64
Description
Angles are radians. Degrees convert with degrees * 3.141592653589793 / 180.0. Very large inputs lose precision because the argument itself has few fractional bits left.
Parameters
value : an angle in radians
Return Values
The sine of value, in the same type.
Example
Capy
print(sin(0.0), " ", sin(3.141592653589793 / 2.0), "\n")
Output
0 1