cabsf, cabs, cabsl

From cppreference.com
< c‎ | numeric‎ | complex
Defined in header <complex.h>
float       cabsf( float complex z );
(1) (since C99)
double      cabs( double complex z );
(2) (since C99)
long double cabsl( long double complex z );
(3) (since C99)
Defined in header <tgmath.h>
#define fabs( z )
(4) (since C99)
1-3) Computes the complex absolute value (also known as norm, modulus, or magnitude) of z.
4) Type-generic macro: if z has type long double complex or long double imaginary, cabsl is called. If z has type float complex or float imaginary, cabsf is called. If z has type double complex or double imaginary, cabs is called. For real and integer types, the corresponding version of fabs is called.

Parameters

z - complex argument

Return value

If no errors occur, returns the absolute value (norm, magnitude) of z.

Errors and special cases are handled as if the function is implemented as hypot(creal(z), cimag(z))