diff options
Diffstat (limited to 'src/complex/cargf.c')
-rw-r--r-- | src/complex/cargf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/complex/cargf.c b/src/complex/cargf.c new file mode 100644 index 00000000..ce183c4b --- /dev/null +++ b/src/complex/cargf.c @@ -0,0 +1,6 @@ +#include "libm.h" + +float cargf(float complex z) +{ + return atan2f(cimagf(z), crealf(z)); +} |