Python:实现newton raphson牛顿-拉夫森算法 import math as m def calc_derivative(f, a, h=0.001): return (f(a + h) - f