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