Calmcode - sympy: integration

Integration

1 2 3 4 5 6

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))