Learning Mathematica.

  • Thread starter flyingpig
  • Start date
  • #1
2,571
1

Homework Statement



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

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?
 

Answers and Replies

  • #2
I like Serena
Homework Helper
6,577
176
  • #3
phyzguy
Science Advisor
4,819
1,777
That's because it doesn't recognize sqrt(3). Try:

PolarPlot[{Sqrt[3] Cos[t]}, {t, 0, 2 Pi}]
 
  • #4
2,571
1
Neither works
 
  • #5
I like Serena
Homework Helper
6,577
176
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.
 
  • #6
2,571
1
No, I mean your links do work, but they only plot one curve. I am trying to plot both curves together
 
  • #7
Mapes
Science Advisor
Homework Helper
Gold Member
2,593
20
PolarPlot[{Sqrt[3] Cos[t], Sin[t]}, {t, 0, 2 Pi}] works for me.
 
  • #8
2,571
1
OKay it is working now. thanks
 

Related Threads on Learning Mathematica.

Replies
2
Views
2K
  • Last Post
Replies
1
Views
976
  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
0
Views
974
  • Last Post
Replies
2
Views
656
  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
2
Views
1K
Replies
2
Views
2K
  • Last Post
Replies
1
Views
548
  • Last Post
Replies
0
Views
894
Top