NAME
cabs, cabsf, cabsl - absolute value of a complex number
SYNOPSIS
#include <complex.h>
I double cabs(double complex z );
I float cabsf(float complex z );
I long double cabsl(long double complex z );
Link with -lm.
DESCRIPTION
The
R cabs ()
function returns the absolute value of the complex number z.
The result is a real number.
CONFORMING TO
C99
NOTES
The function is actually an alias for hypot(a,b) = sqrt(a*a+b*b).
SEE ALSO