nant's projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
<iso646.h>: Avoid conflicts w/ C++ keywords.
[dragonfly.git]
/
lib
/
libm
/
complex
/
carg.c
1
/* $NetBSD: carg.c,v 1.1 2007/08/20 16:01:31 drochner Exp $ */
2
3
/*
4
* Written by Matthias Drochner <drochner@NetBSD.org>.
5
* Public domain.
6
*/
7
8
9
#include <complex.h>
10
#include <math.h>
11
12
double
13
carg(double complex z)
14
{
15
16
return atan2(__imag__ z, __real__ z);
17
}