complex exponential/trigonometric

i like this post (click again to cancel)
4
i dont like this post (click again to cancel)

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

asked Sep 25 '10

yaman gravatar image yaman
41 3 4

updated Apr 28 '11

Kelvin Li gravatar image Kelvin Li
453 1 10 17

2 Answers:

i like this answer (click again to cancel)
3
i dont like this answer (click again to cancel)

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())
sin(x)

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

link

posted Sep 29 '10

Mitesh Patel gravatar image Mitesh Patel
253 3 9

updated Sep 29 '10

Oh, that's great. Can you file a ticket to do so - perhaps with Mma-like notation, if it ends up being appropriate? kcrisman (Sep 29 '10)
i like this answer (click again to cancel)
0
i dont like this answer (click again to cancel)

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.

link

posted Mar 25 '12

daniel kho gravatar image daniel kho
1

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
Login/Signup to Post

Question tools

3 followers

Tags:

Stats:

Asked: Sep 25 '10

Seen: 412 times

Last updated: Mar 25 '12

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.