|
|
1.1 root 1:
2:
3: cabs() Mathematics Function cabs()
4:
5:
6:
7:
8: Complex absolute value function
9:
10: #include <math.h>
11: ddoouubbllee ccaabbss(_z) ssttrruucctt { ddoouubbllee _r, _i; } _z;
12:
13: cabs computes the absolute value, or modulus, of its complex ar-
14: gument z. The absolute value of a complex number is the length
15: of the hypotenuse of a right triangle whose sides are given by
16: the real part r and the imaginary part i. The result is the
17: square root of the sum of the squares of the parts.
18:
19: ***** Example *****
20:
21: For an example of this function, see the entry for acos.
22:
23: ***** See Also *****
24:
25: hypot(), mathematics library
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.