Returns cosine of x. x is in radians.
Results are undefined if |x| >= 264.
import std.math.operations : isClose; assert(cos(0.0) == 1.0); assert(cos(1.0).isClose(0.5403023059)); assert(cos(3.0).isClose(-0.9899924966));
See Implementation
Returns cosine of x. x is in radians.