Network - redispatch was not properly adjust ip->ip_len
[dragonfly.git] / lib / libm / complex / carg.c
blob28fe999b5595d37d42b4e0156d6982d109ae7497
1 /* $NetBSD: carg.c,v 1.1 2007/08/20 16:01:31 drochner Exp $ */
3 /*
4 * Written by Matthias Drochner <drochner@NetBSD.org>.
5 * Public domain.
6 */
9 #include <complex.h>
10 #include <math.h>
12 double
13 carg(double complex z)
16 return atan2(cimag(z), creal(z));