cos
fn
real cos(real x) @safe pure nothrow @nogcReturns cosine of x. x is in radians.
| x | cos(x) | invalid? |
|---|---|---|
| NaN | NaN | yes |
| ±∞ | NaN | yes |
Bugs
Results are undefined if |x| >= 264.
fn
double cos(double x) @safe pure nothrow @nogcditto
fn
float cos(float x) @safe pure nothrow @nogcditto