diff options
Diffstat (limited to 'src/complex/carg.c')
-rw-r--r-- | src/complex/carg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/complex/carg.c b/src/complex/carg.c new file mode 100644 index 0000000..dfe9b97 --- /dev/null +++ b/src/complex/carg.c @@ -0,0 +1,6 @@ +#include "complex_impl.h" + +double carg(double complex z) +{ + return atan2(cimag(z), creal(z)); +} |