blob: 5718bdd8f34d5c1dbb57283f4c7da4e7d40a45fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* $NetBSD: cabs.c,v 1.1 2007/08/20 16:01:30 drochner Exp $ */
/*
* Written by Matthias Drochner <drochner@NetBSD.org>.
* Public domain.
*/
#include "../src/namespace.h"
#include <complex.h>
#include <math.h>
double
cabs(double complex z)
{
return hypot(__real__ z, __imag__ z);
}
|