1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .TH CABS 3 2008-08-11 "" "Linux Programmer's Manual"
6 cabs, cabsf, cabsl \- absolute value of a complex number
8 .B #include <complex.h>
10 .BI "double cabs(double complex " z );
12 .BI "float cabsf(float complex " z );
14 .BI "long double cabsl(long double complex " z );
20 function returns the absolute value of the complex number
22 The result is a real number.
24 These functions first appeared in glibc in version 2.1.
28 The function is actually an alias for
31 .IR "sqrt(a*a\ +\ b*b)" ).