sin
The trigonometric sine function.
Syntax
-
sin(x)
-
x
is a real or complex number
-
Description
If x
is a real number, sin(x)
is the y
coordinate of the intersection of the unit circle x^2 + y^2 = 1
and the ray from the origin making an angle x
(in radians) from the positive x
axis in the anticlockwise direction.
If z
is a complex number, sin(z)
is defined as [e^(i⋅z) − e^(−i⋅z)]/(2⋅i)
.
Notes
If you want to specify the argument in degrees, you can use the ° postfix operator, which amounts to multiplication by π/180.
Examples
sin(π/2)
1
sin(π/3)
0.866025403784 (=√3/2)
sin(270°)
−1
sin(i)
1.17520119364⋅i
∫(sin(x), x, 0, π)
1.99999999984