atan

Calculates the arc tangent of x, returning a value ranging from -π/2 to π/2. Exceptions:

InvalidOperationExceptionx is signaling NaN
InexactExceptionthe result is inexact
UnderflowExceptionthe result is too small to be represented
More...
@IEEECompliant("atan", 43)
D
atan
(
D
)
(
auto const ref D x
)

Detailed Description

Special values

xatan(x)
NaNNaN
±0.0±0.0
±∞±π/2

Examples

decimal32 radians = 1;
assert(atan(radians) == decimal32.PI_4);

Meta