False implicit plot
Hello
I write in SAGE
implicit_plot(y==1/2, (-1,1),(-1,1))
and it returns the graph of the line x=1/2. Why?
Hello
I write in SAGE
implicit_plot(y==1/2, (-1,1),(-1,1))
and it returns the graph of the line x=1/2. Why?
Sage does not guess the names of the variables (you could have been using any name). As your expression contains a single variable, it assumes that this is the first variable (what you would call "x"). To get what you want, use the more explicit syntax
sage: x = var('x')
sage: y = var('y')
sage: implicit_plot(y==1/2, (x,0,1), (y,0,1))
thanks vdelecroix!!!
Asked: 6 years ago
Seen: 706 times
Last updated: Mar 03 '19