sin

Returns sine of x.

@IEEECompliant("sin", 42)
D
sin
(
D
)
(
auto const ref D x
)

Throws

InvalidOperationExceptionx is signaling NaN or ±∞
UnderflowExceptionresult is too small to be represented
InexactExceptionthe result is inexact

Special values

xsin(x)
NaNNaN
±∞NaN
-π/2-1.0
-π/3-√3/2
-π/4-√2/2
-π/6-0.5
±0.0+0.0
+π/6+0.5
+π/4+√2/2
+π/3+√3/2
+π/2+1.0

Meta