]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man/man3/cabs.3
man/, share/mk/: Move man*/ to man/
[thirdparty/man-pages.git] / man / man3 / cabs.3
CommitLineData
a1eaacb1 1'\" t
fea681da 2.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2297bf0e 3.\"
95fb8859 4.\" SPDX-License-Identifier: GPL-1.0-or-later
fea681da 5.\"
4c1c5274 6.TH cabs 3 (date) "Linux man-pages (unreleased)"
fea681da 7.SH NAME
c13182ef 8cabs, cabsf, cabsl \- absolute value of a complex number
2af19291
AC
9.SH LIBRARY
10Math library
8fc3b2cf 11.RI ( libm ", " \-lm )
fea681da 12.SH SYNOPSIS
c7db92b9 13.nf
fea681da 14.B #include <complex.h>
c6d039a3 15.P
fea681da 16.BI "double cabs(double complex " z );
fea681da 17.BI "float cabsf(float complex " z );
fea681da 18.BI "long double cabsl(long double complex " z );
c7db92b9 19.fi
fea681da 20.SH DESCRIPTION
5600f73a 21These functions return the absolute value of the complex number
daac0b39 22.IR z .
ca7b3c18 23The result is a real number.
1c4f38c6
MS
24.SH ATTRIBUTES
25For an explanation of the terms used in this section, see
26.BR attributes (7).
27.TS
28allbox;
c466875e 29lbx lb lb
1c4f38c6
MS
30l l l.
31Interface Attribute Value
32T{
9e54434e
BR
33.na
34.nh
1c4f38c6
MS
35.BR cabs (),
36.BR cabsf (),
37.BR cabsl ()
38T} Thread safety MT-Safe
39.TE
3113c7f3 40.SH STANDARDS
4131356c
AC
41C11, POSIX.1-2008.
42.SH HISTORY
43glibc 2.1.
44C99, POSIX.1-2001.
2b2581ee 45.SH NOTES
daac0b39
MK
46The function is actually an alias for
47.I "hypot(a,\ b)"
48(or, equivalently,
49.IR "sqrt(a*a\ +\ b*b)" ).
47297adb 50.SH SEE ALSO
fea681da
MK
51.BR abs (3),
52.BR cimag (3),
53.BR hypot (3),
a8bda636 54.BR complex (7)