Ask Your Question

Revision history [back]

You can use implicit_plot, either by giving a function of two variables (implicit_plot will plot the level set where the function is equal to 0):

sage: var('x,y')
sage: e(x,y) = ((x+2)^2)/9 + ((y-1)^2)/25
sage: implicit_plot(e - 1, (x,-5,1), (y,-4,6))

or by giving an equation in two variables (note the == sign):

sage: var('x,y')
sage: implicit_plot(((x+2)^2)/9 + ((y-1)^2)/25 == 1, (x,-5,1), (y,-4,6))