Plotting Polar Curves in Mathematica: Troubleshooting Homework Statement

  • Thread starter Thread starter flyingpig
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
To plot the polar curves r = √3 cos(θ) and r = sin(θ) in Mathematica, it is essential to use the correct syntax and range. The initial attempt with PolarPlot[{sqrt(3) Cos[t]}, {t, 0, 2 Pi}] resulted in a blank output due to the range of t. The successful command is PolarPlot[{Sqrt[3] Cos[t], Sin[t]}, {t, 0, 2 Pi}], which plots both curves together. Adjusting the range of t to -π to π can also yield better results for certain curves. Proper syntax and range are crucial for successful plotting in Mathematica.
flyingpig
Messages
2,574
Reaction score
1

Homework Statement



I am trying to plot the two polar curves r = \sqrt{3} cos(\theta) and r = sin(\theta)

Mathematica only gives me one of the curves.

I tried plotting PolarPlot[{sqrt (3) Cos[t]}, {t, 0, 2 Pi}] and it gives me a blank box in the first quadrant.

any ideas?
 
Physics news on Phys.org
That's because it doesn't recognize sqrt(3). Try:

PolarPlot[{Sqrt[3] Cos[t]}, {t, 0, 2 Pi}]
 
Neither works
 
flyingpig said:
Neither works

Did you mean the WolframAlpha links?
Those work for me.

And according to WolframAlpha the Mathematica expression for the polar plot is:

PolarPlot[{Sqrt[3] Cos[t]}, {t, -Pi, Pi}]

It seems that it matters what the range of t is, because it does not work from 0 to 2Pi.
 
No, I mean your links do work, but they only plot one curve. I am trying to plot both curves together
 
PolarPlot[{Sqrt[3] Cos[t], Sin[t]}, {t, 0, 2 Pi}] works for me.
 
OKay it is working now. thanks
 

Similar threads

Replies
1
Views
2K
Replies
1
Views
2K
Replies
3
Views
2K
Replies
2
Views
2K
Back
Top