Example for simplification
# Simplify # exponentialize # see http://ask.sagemath.org/question/148/complex-exponentialtrigonometric th=var("th") f=cos(th)+I*sin(th) sageobj(f._maxima_().exponentialize())