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