Mathematica Mathematica to recognize e−iθ as the eulers identity

AI Thread Summary
Mathematica can recognize Euler's identity, e^{-iθ} = cos(θ) + i*sin(θ), through its built-in functions for complex exponentials. Users often face issues when plotting functions like e^{iθ}, resulting in no visible output on the graph. To resolve this, employing the correct syntax and ensuring the imaginary part is plotted can help. For example, using the command Plot[Im@Exp[-I x], {x, -5, 5}, PlotStyle -> Thick, ColorFunction -> "StarryNightColors"] effectively visualizes the imaginary component of the complex exponential function. This approach highlights the importance of correctly interpreting and plotting complex functions in Mathematica.
arierreF
Messages
78
Reaction score
0
I just need to know how can Mathematica recognize e^{-i\theta} as the eulers identity. This is, e^{-i\theta} = cos \theta + sin \theta.


When i plot a function like e^{i\theta}, nothings appear in the graph.

Help is appreciated.
 
Physics news on Phys.org
You can use something fancy like this:
Code:
Plot[Im@Exp[-I x], {x, -5, 5}, PlotStyle -> Thick, 
 ColorFunction -> "StarryNightColors"]
Nh4ihZW.png
 
Thanks it works!
 

Similar threads

Replies
1
Views
2K
Replies
6
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
18
Views
4K
Back
Top