1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
7 .TH CABS 3 2021-03-22 "" "Linux Programmer's Manual"
9 cabs, cabsf, cabsl \- absolute value of a complex number
12 .B #include <complex.h>
14 .BI "double cabs(double complex " z );
15 .BI "float cabsf(float complex " z );
16 .BI "long double cabsl(long double complex " z );
21 These functions return the absolute value of the complex number
23 The result is a real number.
25 These functions first appeared in glibc in version 2.1.
27 For an explanation of the terms used in this section, see
35 Interface Attribute Value
40 T} Thread safety MT-Safe
46 C99, POSIX.1-2001, POSIX.1-2008.
48 The function is actually an alias for
51 .IR "sqrt(a*a\ +\ b*b)" ).