1CABS(3)                    Linux Programmer's Manual                   CABS(3)
2
3
4

NAME

6       cabs, cabsf, cabsl - absolute value of a complex number
7

SYNOPSIS

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

DESCRIPTION

18       The cabs() function returns the absolute value of the complex number z.
19       The result is a real number.
20

VERSIONS

22       These functions first appeared in glibc in version 2.1.
23

CONFORMING TO

25       C99.
26

NOTES

28       The function is actually an alias for  hypot(a, b)  (or,  equivalently,
29       sqrt(a*a + b*b)).
30

SEE ALSO

32       abs(3), cimag(3), hypot(3), complex(7)
33

COLOPHON

35       This  page  is  part of release 3.53 of the Linux man-pages project.  A
36       description of the project, and information about reporting  bugs,  can
37       be found at http://www.kernel.org/doc/man-pages/.
38
39
40
41                                  2008-08-11                           CABS(3)
Impressum