

cabs()                 Mathematics Function                cabs()




Complex absolute value function

#include <math.h>
ddoouubbllee ccaabbss(_z) ssttrruucctt { ddoouubbllee _r, _i; } _z;

cabs computes the absolute  value, or modulus, of its complex ar-
gument 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(), mathematics library






































COHERENT Lexicon                                           Page 1


