2 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
4 .\" SPDX-License-Identifier: GPL-1.0-or-later
6 .TH cabs 3 (date) "Linux man-pages (unreleased)"
8 cabs, cabsf, cabsl \- absolute value of a complex number
11 .RI ( libm ", " \-lm )
14 .B #include <complex.h>
16 .BI "double cabs(double complex " z );
17 .BI "float cabsf(float complex " z );
18 .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 For an explanation of the terms used in this section, see
31 Interface Attribute Value
38 T} Thread safety MT-Safe
46 The function is actually an alias for
49 .IR "sqrt(a*a\ +\ b*b)" ).