Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

implicit_plot doubled straight line

How come this plotted straight line is doubled?

x, y = var('x,y')
show(implicit_plot((y-x-1/2)^2,(x,-5,5),(y,-5,5), color='red'),gridlines=True)

I am looking for the zeros of the polynomial (y-x-1/2)^2. Obviously this has the same zeros as (y-x-1/2). Somehow the plot draws two parallel straight lines.

My attempt to display a plot here failed and I cannot upload any files, yet, due to a lack of points on this forum.