1 | initial version |
Look at this answer http://ask.sagemath.org/question/148/complex-exponentialtrigonometric
You need to convert sage object to maxima object and then exponentialize
th=var('th')
f=cos(th)+I*sin(th)
sageobj(f._maxima_().exponentialize())