Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / lib / libm / complex / cabs.c
blob82d15d5078ed99ced9deb5e531be740d552e3270
1 /* $NetBSD$ */
3 /*
4 * Written by Matthias Drochner <drochner@NetBSD.org>.
5 * Public domain.
6 */
8 #include "../src/namespace.h"
9 #include <complex.h>
10 #include <math.h>
12 double
13 cabs(double complex z)
16 return hypot(__real__ z, __imag__ z);