]>
Commit | Line | Data |
---|---|---|
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 | 8 | cabs, cabsf, cabsl \- absolute value of a complex number |
2af19291 AC |
9 | .SH LIBRARY |
10 | Math 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 | 21 | These functions return the absolute value of the complex number |
daac0b39 | 22 | .IR z . |
ca7b3c18 | 23 | The result is a real number. |
1c4f38c6 MS |
24 | .SH ATTRIBUTES |
25 | For an explanation of the terms used in this section, see | |
26 | .BR attributes (7). | |
27 | .TS | |
28 | allbox; | |
c466875e | 29 | lbx lb lb |
1c4f38c6 MS |
30 | l l l. |
31 | Interface Attribute Value | |
32 | T{ | |
9e54434e BR |
33 | .na |
34 | .nh | |
1c4f38c6 MS |
35 | .BR cabs (), |
36 | .BR cabsf (), | |
37 | .BR cabsl () | |
38 | T} Thread safety MT-Safe | |
39 | .TE | |
3113c7f3 | 40 | .SH STANDARDS |
4131356c AC |
41 | C11, POSIX.1-2008. |
42 | .SH HISTORY | |
43 | glibc 2.1. | |
44 | C99, POSIX.1-2001. | |
2b2581ee | 45 | .SH NOTES |
daac0b39 MK |
46 | The 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) |