logo

... sympy: symbolic maths



Notes

Remember that you may need to install sympy first!

pip install sympy

The code from this video is listed below.

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

Feedback? See an issue? Something unclear? Feel free to mention it here.



If you want to be kept up to date, consider signing up for the newsletter.