# Revision history [back]

You could try plotting it as two functions but implicit_plot is the natural choice. The documentation is here. This simple code illustrates how it could be done:

x, y = var('x,y')
a=1.1
implicit_plot(y^2==4*a*x, (x,-2,10), (y,-8,8))


You can run the code in any Sage Cell Server, such as here, to check the result. Plotting it as two functions:

a=1.1
A = plot(2*sqrt(a*x), (x, -2, 10))
B = plot(-2*sqrt(a*x), (x, -2, 10))
(A+B).show()


and with a little complaining Sage plots over values that avoids problems with the domain.

You could try plotting it as two functions but implicit_plot is the natural choice. The documentation is here. This simple code illustrates how it could be done:done, given a specific value of a:

x, y = var('x,y')
a=1.1
implicit_plot(y^2==4*a*x, (x,-2,10), (y,-8,8))


Note the double equal signs. You can run the code in any Sage Cell Server, such as here, to check the result. Plotting it as two functions:

a=1.1
A = plot(2*sqrt(a*x), (x, -2, 10))
B = plot(-2*sqrt(a*x), (x, -2, 10))
(A+B).show()


and with a little complaining Sage plots over values that avoids problems with the domain.