I really appreciate your help. It would be nice if the option 'polar = 
True'  could be added to implicit_plot( ) command, or plot( ) command.

El jueves, 22 de octubre de 2020 a las 11:00:07 UTC-7, kcrisman escribió:

>
> How can we plot implicit polar equations like r^2=5-4cos(theta) in 
>> SageMath?
>>
>
> Hmm, that is a good question.  We certainly support implicit plotting and 
> polar plotting, but it doesn't seem that we do together.  The way that 
> polar plotting is supported is basically that the data is switched to 
> [y*cos(x),y*sin(x)] before actually rendering.
>
> Now, you can do something like this:
>
> var('x,y')
> r = sqrt(x^2+y^2)
> theta = arctan2(y,x)
> implicit_plot(r^2==5-4*cos(theta),(x,-4,4),(y,-4,4),aspect_ratio=1)
>
> https://sagecell.sagemath.org/?q=mvmspq
>
> But obviously that is not ideal. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/f8620789-cfc2-40df-8840-20db24adb669n%40googlegroups.com.

Reply via email to