In [1]:
from sympy import *

In [2]:
init_printing()

In [3]:
from sympy.abc import a, b, c, d, f, g, h, x, y, z

In [4]:
expr = a * x**2 + b * x + c

In [5]:
expr


Out[5]:
$$a x^{2} + b x + c$$

In [7]:
solve(expr, x)


Out[7]:
$$\left [ \frac{1}{2 a} \left(- b + \sqrt{- 4 a c + b^{2}}\right), \quad - \frac{1}{2 a} \left(b + \sqrt{- 4 a c + b^{2}}\right)\right ]$$

In [9]:
m = Matrix([[1, 2], [3, 4]])

In [10]:
m


Out[10]:
$$\left[\begin{matrix}1 & 2\\3 & 4\end{matrix}\right]$$

In [11]:
m.inv()


Out[11]:
$$\left[\begin{matrix}-2 & 1\\\frac{3}{2} & - \frac{1}{2}\end{matrix}\right]$$

In [12]:
m.det()


Out[12]:
$$-2$$

In [13]:
%matplotlib inline

In [14]:
plot(x**2)


Out[14]:
<sympy.plotting.plot.Plot at 0x7f3130f2f208>