Plotting Polar Curves in Mathematica: Troubleshooting Homework Statement

  • Thread starter Thread starter flyingpig
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary

Discussion Overview

The discussion revolves around troubleshooting the plotting of two polar curves, specifically r = √3 cos(θ) and r = sin(θ), in Mathematica. Participants explore issues related to the software's output and the correct syntax for plotting these functions.

Discussion Character

  • Homework-related
  • Technical explanation
  • Exploratory

Main Points Raised

  • One participant reports that Mathematica only plots one of the curves when using the command PolarPlot[{sqrt(3) Cos[t]}, {t, 0, 2 Pi}].
  • Another participant suggests that Mathematica may not recognize sqrt(3) and recommends using PolarPlot[{Sqrt[3] Cos[t]}, {t, 0, 2 Pi}].
  • A later reply indicates that the range of t matters, noting that PolarPlot[{Sqrt[3] Cos[t]}, {t, -Pi, Pi}] works better.
  • One participant clarifies that they are trying to plot both curves together and not just one.
  • Another participant successfully plots both curves using PolarPlot[{Sqrt[3] Cos[t], Sin[t]}, {t, 0, 2 Pi}].

Areas of Agreement / Disagreement

Participants express differing experiences with the plotting commands, and while some solutions are proposed, there is no consensus on a single correct approach until the final command is confirmed to work by one participant.

Contextual Notes

There are unresolved issues regarding the recognition of certain functions and the importance of the range of t in the plotting commands.

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 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K