support complex numbers in exponential calculations