Ask Your Question

complex exponential/trigonometric

asked 2010-09-25 14:36:07 -0500

yaman gravatar image

updated 2011-04-28 12:05:48 -0500

Kelvin Li gravatar image

Is there any command equivalent to the Mathematica's "TrigToExp" and "ExpToTrig"? Where should I look for general support on complex exponential/trigonometric functions?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2010-09-29 00:12:31 -0500

Mitesh Patel gravatar image

updated 2010-09-29 00:14:30 -0500

This works for me in Sage 4.5.3:

sage: x = var('x')
sage: t1 = cos(x)
sage: t2 = e^(I * x) / 2 / I - e^(-I * x) / 2 / I
sage: sageobj(t1._maxima_().exponentialize())
1/2*e^(-I*x) + 1/2*e^(I*x)
sage: sageobj(t2._maxima_().demoivre())

Perhaps there's a simpler way? I don't think we've wrapped Maxima's demoivre and exponentialize in Sage. They're documented here.

edit flag offensive delete link more


Oh, that's great. Can you file a ticket to do so - perhaps with Mma-like notation, if it ends up being appropriate?

kcrisman gravatar imagekcrisman ( 2010-09-29 16:41:45 -0500 )edit
Mitesh Patel gravatar imageMitesh Patel ( 2010-09-29 17:10:18 -0500 )edit

The correct link is Unfortunately, the ticket seems stalled at the moment.

eric_g gravatar imageeric_g ( 2016-12-21 08:53:16 -0500 )edit

answered 2012-03-25 05:56:48 -0500

Hi, just wondering if any work has been done on this yet? It's been a while, so I thought there may be some updates. Anyway, I'm a total exponentiation geek (or call me anti-trigonometric freak if you like), so a simple TrigToExp function in Sage would be nice.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2010-09-25 14:36:07 -0500

Seen: 1,027 times

Last updated: Mar 25 '12