ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 07 Sep 2013 12:49:28 +0200Plot a polar curve given the radius?https://ask.sagemath.org/question/10521/plot-a-polar-curve-given-the-radius/Essentially, a question reads:
Graph the polar curve r = 4cos(2?), where ? is a radian angle.
The graph of the curve looks like a 4 leafed clover.
The following function, r=3cos(?), looks like a circle centered at (3/2, 0).Sat, 07 Sep 2013 10:37:33 +0200https://ask.sagemath.org/question/10521/plot-a-polar-curve-given-the-radius/Answer by tmonteil for <p>Essentially, a question reads:
Graph the polar curve r = 4cos(2?), where ? is a radian angle.</p>
<p>The graph of the curve looks like a 4 leafed clover.</p>
<p>The following function, r=3cos(?), looks like a circle centered at (3/2, 0).</p>
https://ask.sagemath.org/question/10521/plot-a-polar-curve-given-the-radius/?answer=15431#post-id-15431You can use the `polar_plot()` function as follows:
sage: polar_plot(3*cos(2*x), (x, 0, 2*pi))
or
sage: polar_plot(3*cos(x), (x, 0, 2*pi)
See
sage: polar_plot?
for more deatils. Also, note that `polar_plot(XXX)` is just a shortcut for `plot(XXX, polar=True)`.
Sat, 07 Sep 2013 12:49:28 +0200https://ask.sagemath.org/question/10521/plot-a-polar-curve-given-the-radius/?answer=15431#post-id-15431