.TH cabs() "" "" "Mathematics Function (libm)"
.PC "Complex absolute value function"
.B "#include <math.h>"
\fBdouble cabs(\fIz\^\fB) struct { double \fIr\^\fB, \fIi\^\fB; } \fIz\^\fB;\fR
.PP
.B cabs()
computes the absolute value, or modulus, of its complex argument
.IR z .
The absolute value of a complex number is the length of the hypotenuse of a
right triangle whose sides are given by the real part
.I r
and the imaginary
part
.IR i .
The result is the square root of the sum of the squares of the parts.
.SH Example
For an example of this function, see the entry for
.BR acos() .
.SH "See Also"
.Xr hypot(), hypot
.Xr lib lib
