1CABS(3) complex math routines CABS(3)
2
3
4
6 cabs, cabsf, cabsl - absolute value of a complex number
7
9 #include <complex.h>
10
11 double cabs(double complex z);
12 float cabsf(float complex z);
13 long double cabsl(long double complex z);
14
15 Link with -lm.
16
18 The cabs() function returns the absolute value of the complex number z.
19 The result is a real number.
20
22 The function is actually an alias for hypot(a,b) = sqrt(a*a+b*b).
23
25 C99
26
28 abs(3), cimag(3), hypot(3), complex(7)
29
30
31
32 2002-07-28 CABS(3)