Mathematica Help - Plotting equation with i

  • Context: Mathematica 
  • Thread starter Thread starter tarheelborn
  • Start date Start date
  • Tags Tags
    Mathematica Plotting
Click For Summary
SUMMARY

The discussion centers on using Mathematica to plot the equation r[t_] = 3 Cos[t] + i Sin[t] using the PolarPlot function. Users encountered issues when attempting to include the imaginary unit 'i', as PolarPlot only supports real radii. A suggested solution involves using the Abs function to convert the complex radius into a real value, allowing for successful plotting. The final resolution was achieved using ParametricPlot, which effectively visualized the desired curve after some adjustments.

PREREQUISITES
  • Familiarity with Mathematica syntax and functions
  • Understanding of complex numbers and their representation
  • Knowledge of PolarPlot and its limitations in Mathematica
  • Experience with ParametricPlot for visualizing mathematical functions
NEXT STEPS
  • Explore the documentation for PolarPlot in Mathematica
  • Learn about the Abs function in Mathematica for handling complex numbers
  • Investigate advanced plotting techniques in Mathematica, including ParametricPlot
  • Research complex number visualization methods in Mathematica
USEFUL FOR

Mathematica users, mathematicians, and educators looking to visualize complex functions and enhance their understanding of plotting techniques in mathematical software.

tarheelborn
Messages
121
Reaction score
0
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.
 
Physics news on Phys.org
PolarPlot[], documented here,
http://reference.wolfram.com/mathematica/ref/PolarPlot.html
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?
 
I finally managed to get this using ParametricPlot. It worked beautifully; just took some tweaking! Thank you.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K