2 implementations of ndiff2:
#1
/digego/extempore/tree/v0.8.9/libs/core/math.xtm ·
#2
/digego/extempore/tree/v0.8.9/libs/core/math.xtm
(bind-func ndiff2
"numeric differentiation (2nd deriv) - central diff"
(lambda (f:[double,double]* x)
(/ (- (- (f (+ x 1e-5)) (f x))
(- (f x) (f (- x 1e-5))))
(* 1e-5 1e-5))))