The OpenD Programming Language

cos

Returns cosine of x. x is in radians.

Special Values
xcos(x)invalid?
NaNNaNyes
±∞NaNyes
  1. alias cos = llvm_cos!float
  2. alias cos = llvm_cos!double
    import core.math;
    version(LDC)
    @nogc nothrow @safe pure
    alias cos = llvm_cos!double
  3. alias cos = llvm_cos!real

Bugs

Results are undefined if |x| >= 264.

Meta