Skip to content
Advertisement

Trying to simplify a stubborn expression in SymPy – complex exponential / trigonometric space vector equation

I am trying to simplify

JavaScript

which I know reduces down to 1.5e^(I*phi)

I cannot get SymPy to recognize this. I have tried simplify, trigsimp, expand, etc. But nothing seems to work. Any suggestions?

Here is my code:

JavaScript

None of these produce the expected result. I can confirm my result manually, by substituting values in for phi like this:

JavaScript

Advertisement

Answer

It’s not obvious but you can get there like this:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement