In [1]:
import numpy as np
import matplotlib.pyplot as plot
from sympy import *
%matplotlib inline

In [3]:
x = symbols('x')
y = x**2 + (6 * x) - 3
solve(y, x)


Out[3]:
[-3 + 2*sqrt(3), -2*sqrt(3) - 3]

In [12]:
print(-3 + 2*np.sqrt(3))
print(-2*np.sqrt(3) - 3)
plot(y, xlim=(-1, 1), ylim=(-1, 1))


0.464101615138
-6.46410161514
Out[12]:
<sympy.plotting.plot.Plot at 0x6237684588>

In [ ]: