nerdamer is lacking some functions for complex numbers.
So... I made functions for re, and im.
re takes in a complex number and gives the real part:
The function breaks down the symbols by + -. Then it filters the real part of the symbol and adds them up.
im function does the same thing:
However it divides by i at the end.
I also had to change the callfunction to take in complex numbers: