Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica to recognize e−iθ as the eulers identity

  1. Mar 2, 2013 #1
    I just need to know how can Mathematica recognize [itex]e^{-i\theta}[/itex] as the eulers identity. This is, [itex]e^{-i\theta} = cos \theta + sin \theta [/itex].

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

    Help is appreciated.
  2. jcsd
  3. Mar 2, 2013 #2
    You can use something fancy like this:
    Code (Text):
    Plot[Im@Exp[-I x], {x, -5, 5}, PlotStyle -> Thick,
     ColorFunction -> "StarryNightColors"]
  4. Mar 3, 2013 #3
    Thanks it works!
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook