compiler: add complex manipulation

* builtins: real, imag, complex
* printing of complex numbers

No support for complex arithmetic yet.
This commit is contained in:
Ayke van Laethem
2018-10-22 13:44:59 +02:00
parent 9393cdd5ed
commit 9b9b66a09d
7 changed files with 145 additions and 7 deletions
+10
View File
@@ -11,3 +11,13 @@
+3.333333e-001
+6.666667e-001
+6.666667e-001
(+6.666667e-001+1.200000e+000i)
+6.666667e-001
+1.200000e+000
(+6.666667e-001-2.000000e+000i)
+6.666667e-001
-2.000000e+000
(+2.000000e+000+1.000000e+000i)
(+2.000000e+000-2.000000e+000i)
(+6.666667e-001-2.000000e+000i)
(+6.666667e-001+1.200000e+000i)