📜  如何在python代码示例中返回函数的导数

📅  最后修改于: 2022-03-11 14:46:46.336000             🧑  作者: Mango

代码示例2
from sympy import Symbol, Derivative

x= Symbol('x')

function= x**4 + 7*x**3 + 8

deriv= Derivative(function, x)
deriv.doit().subs({x:4})