about summary refs log tree commit diff
path: root/src/complex/conj.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/conj.c')
-rw-r--r--src/complex/conj.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/complex/conj.c b/src/complex/conj.c
new file mode 100644
index 00000000..4aceea7b
--- /dev/null
+++ b/src/complex/conj.c
@@ -0,0 +1,6 @@
+#include "libm.h"
+
+double complex conj(double complex z)
+{
+	return cpack(creal(z), -cimag(z));
+}