cos

fnfloat cos(float x) @nogc nothrow @safe pure

Returns cosine of x. x is in radians.

x cos(x) invalid?
NaN NaN yes
±∞ NaN yes

Bugs

Results are undefined if |x| >= 264.
fndouble cos(double x) @nogc nothrow @safe pure
No documentation available for this declaration.
fnreal cos(real x) @nogc nothrow @safe pure
No documentation available for this declaration.