logo

... sympy.


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.


Notes

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 getting the newsletter.