ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 07 Sep 2013 05:49:28 -0500Plot 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 03:37:33 -0500https://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 05:49:28 -0500https://ask.sagemath.org/question/10521/plot-a-polar-curve-given-the-radius/?answer=15431#post-id-15431