[sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Priyanka Kapoor
I plotted circle using parametric equation, using circle() function. But i want to plot x^2+y^2=4 I tried this: var('x,y') b=[x^2+y^2==4] c=plot(b,(x,-2,2),(y,-2,2),color='blue') c.save('ram.png') I am getting the following error TypeError: float() argument must be a string or a number Can

Re: [sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Hakan Granath
You might want to use implicit_plot instead: var('x,y') b = x^2+y^2==4 c = implicit_plot(b,(x,-2,2),(y,-2,2),color='blue') c.save('ram.png') /HÃ¥kan -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

Re: [sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Priyanka Kapoor
You might want to use implicit_plot instead: var('x,y') b = x^2+y^2==4 c = implicit_plot(b,(x,-2,2),(y,-2,2),color='blue') c.save('ram.png') It gives the following error TypeError: 'tuple' object is not callable -- Priyanka Kapoor http://kapoorpriyanka.in Linux User Group, Ludhiana --

Re: [sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Hakan Granath
On Mon, May 7, 2012 at 1:24 PM, Priyanka Kapoor anjalicool.kapoor...@gmail.com wrote: You might want to use implicit_plot instead: var('x,y') b = x^2+y^2==4 c = implicit_plot(b,(x,-2,2),(y,-2,2),color='blue') c.save('ram.png') It gives the following error TypeError: 'tuple' object is not

Re: [sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Priyanka Kapoor
Please note that I wrote b = x^2+y^2==4 I got a plot.thank you. Sir , can't we draw it using plot() function. -- Priyanka Kapoor http://kapoorpriyanka.in Linux User Group, Ludhiana -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send