| Author |
Comment/Response |
Chat
|
08/27/11 8:10pm
If I were to evaluate the following expression:
f[x_] = Re[ExpToTrig[E^(I*x)]]
f[x] would equal Cos[x]. However, the Mathematica output indicates that f[x] = -Im[Sin[x]]+Re[Cos[x]]
Is there a way to get the real portion resulting from the conversion e^ix to a trigonometric function?
We know the answer should be just Cos[x]...
The attached notebook confirms this phenomenon.
Attachment: RealPart.nb, URL: , |
|