有限差分微分 (scipy.differentiate)#

SciPy differentiate 提供了用於對黑箱函數執行有限差分數值微分的函式。

derivative(f, x, *[, args, tolerances, ...])

以數值方式評估元素級實數純量函數的導數。

jacobian(f, x, *[, tolerances, maxiter, ...])

以數值方式評估函數的 Jacobian 矩陣。

hessian(f, x, *[, tolerances, maxiter, ...])

以數值方式評估函數的 Hessian 矩陣。