Calculates the arc tangent of x, returning a value ranging from -π/2 to π/2.
import std.math.operations : isClose; import std.math.traits : isIdentical; import std.math.constants : PI; import std.math.algebraic : sqrt; assert(isIdentical(atan(0.0), 0.0)); assert(atan(sqrt(3.0)).isClose(PI / 3));
See Implementation
Calculates the arc tangent of x, returning a value ranging from -π/2 to π/2.