深色模式
Download exercise.py
实现 central_diff(f, x, h=1e-6):
central_diff(f, x, h=1e-6)
对 t3−2t 在 2 处应得到 10(误差小于 10−6)。不要写成单侧差分,否则过不了断言。
cd docs/math/derivative/code python exercise.py
docs/math/derivative/code/exercise.py