Maxima Function
rectform (expr)
Returns an expression a + b %i equivalent to expr, such that a and b are purely real.
a + b %i