After creating the im and re functions. I have to fix the exp function.
For any complex argument in exp:
It is just Euler's formula and exponent laws. a is real part and b is imaginary part.
So the new exp function becomes:
On to solving the (a+bi)^(f(x)) bug.....