Name

abs function template — Computes absolute value

Synopsis

template<typename T> T abs(const complex<T>& z)

The abs function returns the absolute value (or magnitude) of z.