blob: b4b78ee545b4ef0d44d3a0e4fbd42c60b78f9aef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# define TGSOURCE "complex/cabs.c"
#include <complex.h>
#include <math.h>
#include "_tgmath.h"
TYPE TGFN(cabs)(TYPE complex z)
{
return TGFN(hypot)(TGFN(creal)(z), TGFN(cimag)(z));
}
/*d
The cabs functions compute the complex absolute value (also called norm, modulus, or
magnitude) of z.
d*/
/*r
The cabs functions return the complex absolute value.
r*/
/*
STDC(199901)
LINK(m)
*/
|