[sage-support] Drawing Circle using simple equation of circle
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 anyone help me. I am new to sage that's why unable to solve errors -- 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 email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Drawing Circle using simple equation of circle
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 sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Drawing Circle using simple equation of circle
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 -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Drawing Circle using simple equation of circle
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 callable Please note that I wrote b = x^2+y^2==4 -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Drawing Circle using simple equation of circle
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 email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org