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

Mathematica Help - Plotting equation with i

  1. Feb 1, 2012 #1
    I cannot seem to make mathematica plot the following equation correctly:

    r[t_] = 3 Cos[t] + iSin[t];
    plotbeta = PolarPlot[r[t], {t, -Pi/2, Pi/2}]

    I have used the capital I to no avail; I have used * to indicate multiplication. It plots the curve without a problem when I leave out the i, but I need the i! I will appreciate your help. Thank you.
  2. jcsd
  3. Feb 2, 2012 #2
    PolarPlot[], documented here,
    plots a Real radius as a function of the angle.

    Do you really want to plot a surface in Complex space as a function of Complex radius?
    If you want a PolarPlot that plots Complex radii then I don't know what to suggest.
    There have been a few example complex plotting functions demonstrated over the years,
    I think Roman Maeder developed one of these in the really really old book "Programming in Mathematica."

    Or do you perhaps want
    r[t_] = Abs[3 Cos[t] + I Sin[t]];
    where Abs[] returns the Real distance from the origin to the point 3 Cos[t] + I Sin[t] in the complex plane?
  4. Feb 8, 2012 #3
    I finally managed to get this using ParametricPlot. It worked beautifully; just took some tweaking! Thank you.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Similar Threads for Mathematica Help Plotting
Mathematica Storing Mathematica output
Mathematica Mathematica to MATLAB
Mathematica Cannot do the integral of the Hyper-geometric function?
Mathematica Cannot Plot This Function in Mathematica
Mathematica While Loop in Mathematica