(divided-difference xs ys)Creates the interpolating polynomial through all points in Newton's form (divided differences).
The nodes xs have to be finite and strictly increasing, at least 2 points. Throws ex-info with :property :length-mismatch, :too-few-points, :not-finite or :not-increasing otherwise.
Returns a function of one argument x returning a double.
See also neville.
Creates the interpolating polynomial through all points in Newton's form (divided differences). The nodes `xs` have to be finite and strictly increasing, at least 2 points. Throws `ex-info` with `:property` `:length-mismatch`, `:too-few-points`, `:not-finite` or `:not-increasing` otherwise. Returns a function of one argument `x` returning a `double`. See also [[neville]].
(neville xs ys)Creates the interpolating polynomial through all points using Neville's algorithm.
The nodes xs have to be finite and distinct, at least 2 points, the order is not required. Throws ex-info with :property :length-mismatch, :too-few-points, :not-finite or :duplicate-points otherwise.
Returns a function of one argument x returning a double.
See also divided-difference.
Creates the interpolating polynomial through all points using Neville's algorithm. The nodes `xs` have to be finite and distinct, at least 2 points, the order is not required. Throws `ex-info` with `:property` `:length-mismatch`, `:too-few-points`, `:not-finite` or `:duplicate-points` otherwise. Returns a function of one argument `x` returning a `double`. See also [[divided-difference]].
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |