blob: 97cc3c09d3e36265d5257241434016e38baabf70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# define TGSOURCE "complex/cabs.c"
#include <complex.h>
#include <math.h>
#include "_tgmath.h"
TYPE TGFN(cabs)(TYPE complex z)
{
SIGNAL_SAFE(0);
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)
*/
|