repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git]
/
lib
/
libm
/
complex
/
carg.c
blob
03d6ad9f49f2a2837bd83808b5a31c564f57a2ba
1
/* $NetBSD$ */
2
3
/*
4
* Written by Matthias Drochner <drochner@NetBSD.org>.
5
* Public domain.
6
*/
7
8
#include
"../src/namespace.h"
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
}