returns the amplitude (modulus) of the complex value.
double cabs( complex z )
The amplitude
EX1
void run_complex_cabs() { complex cc(1., -1.); // Display the amplitude: out_double("amplitude = ", cabs(cc)); // shoulde be 1.41421 (=sqrt(2)) }
origin.h