diff options
Diffstat (limited to 'src/complex/cabs.c')
-rw-r--r-- | src/complex/cabs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/complex/cabs.c b/src/complex/cabs.c new file mode 100644 index 00000000..f61d364e --- /dev/null +++ b/src/complex/cabs.c @@ -0,0 +1,6 @@ +#include "libm.h" + +double cabs(double complex z) +{ + return hypot(creal(z), cimag(z)); +} |