Liking cljdoc? Tell your friends :D

fastmath.calculus.quadrature


check-integration-pointsclj

(check-integration-points n)

Returns the order of the Gauss-Kronrod rule as a long; throws ex-info unless it is an integer >= 1.

Returns the order of the Gauss-Kronrod rule as a long; throws `ex-info` unless it is an integer >= 1.
raw docstring

gk-quadratureclj

(gk-quadrature f lower upper)
(gk-quadrature f lower upper options)

Adaptive Gauss-Kronrod quadrature of f on [lower, upper], see fastmath.calculus/integrate for options and result.

Adaptive Gauss-Kronrod quadrature of `f` on `[lower, upper]`, see [[fastmath.calculus/integrate]] for options and result.
raw docstring

kronrodclj

(kronrod n)

Gauss-Kronrod rule of order n (n Gauss points inside 2n + 1 Kronrod points) on the interval [-1, 1].

Parameters:

  • n (integer >= 1): the order of the rule.

Returns a map with the keys:

  • :x - the n + 1 nodes of the left half of the interval, in increasing order up to 0.0; the other half is symmetric.
  • :w - the weights of the Kronrod rule for the nodes :x.
  • :gw - the weights of the embedded Gauss rule for the nodes of :x with even indexes counted from 1 (the Gauss nodes lie between the Kronrod ones).
  • :gk-evals - the number of evaluations of the integrand for two intervals, 4n + 2.

The rules are computed with the algorithm of QuadGK.jl and match it to 1e-15. The results are memoized; the rule of order 7 is precomputed.

Gauss-Kronrod rule of order `n` (`n` Gauss points inside `2n + 1` Kronrod points) on the interval `[-1, 1]`.

Parameters:

- `n` (integer >= 1): the order of the rule.

Returns a map with the keys:

- `:x` - the `n + 1` nodes of the left half of the interval, in increasing order up to `0.0`; the other half is symmetric.
- `:w` - the weights of the Kronrod rule for the nodes `:x`.
- `:gw` - the weights of the embedded Gauss rule for the nodes of `:x` with even indexes counted from 1 (the Gauss nodes lie between the Kronrod ones).
- `:gk-evals` - the number of evaluations of the integrand for two intervals, `4n + 2`.

The rules are computed with the algorithm of QuadGK.jl and match it to 1e-15. The results are memoized; the rule of order 7 is precomputed.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close