tan

Returns tangent of x.

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

Throws

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

Special values

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

Meta