The OpenD Programming Language

fabs

Overload for cdouble, cfloat and creal

  1. T fabs(T x)
  2. T fabs(T x)
  3. T fabs(T x)
  4. auto fabs(T x)
    fabs
    (
    T
    )
    (
    in T x
    )
    if (
    isComplex!T
    )

Examples

import mir.complex;
assert(fabs(Complex!double(3, 4)) == 25);

Meta