The code from this video is listed below.
import sympy as sp
x = symbols('x')
f = x ** 2 + 4 * x - 16
sp.solve(sp.diff(f, x), x)
f.subs(x, -2)
sp.plot(f - 5)
sp.diff(sp.diff(f, x), x)
sympy: differentiation
The code from this video is listed below.
import sympy as sp
x = symbols('x')
f = x ** 2 + 4 * x - 16
sp.solve(sp.diff(f, x), x)
f.subs(x, -2)
sp.plot(f - 5)
sp.diff(sp.diff(f, x), x)