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.Wed, 23 Mar 2016 12:23:51 +0100Plotting an algebraic curvehttps://ask.sagemath.org/question/32860/plotting-an-algebraic-curve/I'm looking for the right function that lets me 2D-plot an algebraic curve like $x^2+y^2=1$. I know this example will get me a circle, but I want to use this to get an idea about how the curve looks like, so using a special function like `sage.plot.circle.Circle` doesn't help me.
I would be happy if anyone could point me to the right function. Thanks!Wed, 23 Mar 2016 11:43:41 +0100https://ask.sagemath.org/question/32860/plotting-an-algebraic-curve/Answer by B r u n o for <p>I'm looking for the right function that lets me 2D-plot an algebraic curve like $x^2+y^2=1$. I know this example will get me a circle, but I want to use this to get an idea about how the curve looks like, so using a special function like <code>sage.plot.circle.Circle</code> doesn't help me.</p>
<p>I would be happy if anyone could point me to the right function. Thanks!</p>
https://ask.sagemath.org/question/32860/plotting-an-algebraic-curve/?answer=32864#post-id-32864The function you are probably looking for is `implicit_plot`:
sage: f(x,y) = x^2 + y^2 -1
sage: implicit_plot(f, (-2, 2), (-2, 2))
Note that there also exists `implicit_plot3d` for functions in 3 variables.
Wed, 23 Mar 2016 12:23:51 +0100https://ask.sagemath.org/question/32860/plotting-an-algebraic-curve/?answer=32864#post-id-32864