ndiff   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/math.xtm

Implementation

;; numeric differentation
(bind-func ndiff
  "numeric differentiation - central diff"
  (lambda (f:[double,double]* x)
    (/ (- (f (+ x (/ 1e-5 2.0)))
          (f (- x (/ 1e-5 2.0))))
       1e-5)))


Back to Index

Similar Entries

  • ndiff    xtlang
  • ndiff2    xtlang
  • ndiff2    xtlang
  • ndiff_extrapolated    xtlang
  • ndifferentiate    xtlang