COHERENT manpages

This page displays the COHERENT manpage for cabs() [Complex absolute value function].

List of available manpages
Index


cabs() -- Mathematics Function (libm)

Complex absolute value function
#include <math.h>
double cabs(z) struct { double r, i; } z;

cabs() computes the absolute value,  or modulus, of its complex argument 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 r and the imaginary
part i.  The result is  the square root  of the sum  of the squares  of the
parts.

Example

For an example of this function, see the entry for acos().

See Also

hypot(),
lib