Mathematica Why Does a Polar Plot of a Circle Only Show One Side of the Unit Circle?

AI Thread Summary
When plotting a circle using the polar coordinates with the range of theta from π/2 to -π/2, the resulting graph shows the right side of the unit circle. This occurs because θ = 0, which lies on the positive x-axis, is included within this range, leading to the right half being represented. To obtain the left side of the circle, the range should be adjusted to π/2 to 3π/2, which excludes θ = 0 and thus captures the opposite side of the circle. This clarification resolves the initial confusion regarding the expected output of the plot.
member 428835
Why is it when I plot a circle from ##\theta \in [\pi/2,-\pi/2]## I get the right side of the unit circle:

PolarPlot[1, {\[Theta], \[Pi]/2, -\[Pi]/2}]

? Shouldn't I get the left side?
 
Physics news on Phys.org
No. It is perfectly in order. ##\theta = 0## is the positive ##x##-axis and is part of your plot. ##\theta = \pi## is the negative ##x##-axis and is not part of your plot.
 
  • Like
Likes jedishrfu
joshmccraney said:
Why is it when I plot a circle from ##\theta \in [\pi/2,-\pi/2]## I get the right side of the unit circle:

PolarPlot[1, {\[Theta], \[Pi]/2, -\[Pi]/2}]

? Shouldn't I get the left side?
Note that ##\theta=0## is in the range from ##\pi/2## to ##-\pi/2##, so you expect to get the side of the circle containing 0.

What you want is the range from ##\pi/2## to ##3\pi/2## which does not contain 0.
 
  • Like
Likes member 428835
this makes tons of sense, thanks!
 

Similar threads

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