Returns a complex absolute value.
#include <complex.h>
double cabs (z)
double complex z;
float cabsf (z)
float complex z;
long double cabsl (z)
long double complex z;
The cabs, cabsf, or cabsl subroutines compute the complex absolute value (also called norm, modulus, or magnitude) of the z parameter.
Item | Description |
---|---|
z | Specifies the value to be computed. |
Returns the complex absolute value.