Calculates the arc cosine of x, returning a value ranging from 0 to π.
assert(acos(0.0).approxEqual(1.570)); assert(acos(0.5).approxEqual(std.math.PI / 3)); assert(acos(PI).isNaN);
See Implementation
Calculates the arc cosine of x, returning a value ranging from 0 to π.