|
|
coherent
cabs() Mathematics Function cabs()
Complex absolute value function
#include <math.h>
ddoouubbllee ccaabbss(_z) ssttrruucctt { ddoouubbllee _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
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.