projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b8c8ab637c9f520927ecb6a3701eb6da1e6d7be4
[dragonfly.git]
/
lib
/
libm
/
complex
/
cabs.c
1
/* $NetBSD: cabs.c,v 1.1 2007/08/20 16:01:30 drochner Exp $ */
2
3
/*
4
* Written by Matthias Drochner <drochner@NetBSD.org>.
5
* Public domain.
6
*/
7
8
#include <complex.h>
9
#include <math.h>
10
#include "../src/math_private.h"
11
12
double
13
cabs(double complex z)
14
{
15
16
return hypot(creal(z), cimag(z));
17
}