Calmcode - sympy: symbolic maths

Symbolic Maths

1 2 3 4 5 6

Sympy is a system for symbolic maths in python. It doesn't just compute, it also differentiates, integrates and automates common calculus steps. It also has a great documentation page.

Let's first install it.

pip install sympy

The code from this video is listed below.

import sympy as sp

x = sp.symbols('x')
f = x ** 2 + 4 * x - 16
sp.solve(f, x)