Some improvements to the math function input
Complex numbers now included