ndiff_extrapolated   xtlang


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

Implementation

(bind-func ndiff_extrapolated
  "numeric differentiation - extrapolated diff"
  (lambda (f:[double,double]* x dx)
    (/ (- (* 8.0 (- (f (+ x (/ dx 4.0)))
                    (f (- x (/ dx 4.0)))))
          (- (f (+ x (/ dx 2.0)))
             (f (- x (/ dx 2.0)))))
       (* 3.0 dx))))


Back to Index

Similar Entries

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