Computes the absolute value of the complex number value by a square root calculation.
#include <math.h>
double cabs (
__COMPLEX value);
(IN) Specifies the value of the complex number.
Returns the absolute value.
In certain cases, overflow errors can occur that cause the matherr routine to be invoked.
The cabs function computes the absolute value of the complex number value by a calculation that is equivalent to
sqrt ((value.real * value.real) + (value.imag * value.imag))