sympy is a system for symbolic maths in python. It doesn't just compute, it also differentiates, integrates and automates common calculus steps. The documentation for it can be found here.
The code for this video is listed below.
import sympy as sp x = sp.symbols("x") fx = x + x ** 3 - sp.sin(x) sp.integrate(fx, x) sp.integrate(fx, (x, 1, 3)) sp.printing.jscode(sp.integrate(fx, x)) sp.printing.jscode(sp.integrate(fx, 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.