about summary refs log tree commit diff
path: root/src/complex/cargf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/cargf.c')
-rw-r--r--src/complex/cargf.c6
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));
+}