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]:
In [12]:
print(-3 + 2*np.sqrt(3))
print(-2*np.sqrt(3) - 3)
plot(y, xlim=(-1, 1), ylim=(-1, 1))
Out[12]:
In [ ]: