Message Boards Message Boards

0
|
4360 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Exponential to trig form

Posted 3 years ago

The attached notebook shows a small problem with exponent to trig form.

I have a simple expression like this:

In[32]:= a = Exp[(5 I \[Pi])/12]

Out[32]= E^((5 I \[Pi])/12)

If you try to convert this to trig form you get:

In[33]:= ExpToTrig[a]

Out[33]= (1/2 + I/2) Sqrt[3/2] - (1/2 - I/2)/Sqrt[2]

Which is correct, but for presentation purposes I would like to have it in this form:

\[Alpha](Cos(\[Beta]\[Pi])+i Sin(\[Beta]\[Pi]))

Is there a single command to do this? I can see a complicated structure, but I would like something simpler.

Attachments:
POSTED BY: Jesse Sheinwald
2 Replies

Thank you for the neat line of code.

POSTED BY: Jesse Sheinwald
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract