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