Liking cljdoc? Tell your friends :D

sicmutils.numerical.quadrature.common

Implements utilities shared by all integrators, for example:

  • code to wrap a sequence of progressively better estimates in a common integrator interface
  • data structures implementing various integration intervals.
Implements utilities shared by all integrators, for example:

- code to wrap a sequence of progressively better estimates in a common `integrator` interface
- data structures implementing various integration intervals.
raw docstring

*roundoff-cutoff*clj/s


close-lclj/s

(close-l [_ r])

close-rclj/s

(close-r [l _])

closedclj/s


closed-openclj/s


closed?clj/s

(closed? x)

Returns true if the argument represents an explicit closed interval, false otherwise.

Returns true if the argument represents an explicit `closed` interval, false
otherwise.
raw docstring

defintegratorclj/smacro

(defintegrator sym & body)

Helper macro for defining integrators.

Helper macro for defining integrators.
raw docstring

flipclj/s

(flip [l r])

infinite?clj/s


infinitiesclj/s


intervalclj/s

(interval opts)

Extracts the interval (or open as a default) from the supplied integration options dict.

Extracts the interval (or `open` as a default) from the supplied integration
options dict.
raw docstring

make-integrator-fnclj/s

(make-integrator-fn area-fn seq-fn)

Generates an integrator function from two functions with the following signatures and descriptions:

  • (area-fn f a b) estimates the integral of f over the interval (a, b) with no subdivision, nothing clever at all.

  • (seq-fn f a b opts) returns a sequence of successively refined estimates of the integral of f over (a, b). opts can contain kv pairs that configure the behavior of the sequence function (a sequence of the number of integration slices to use, for example.)

The returned function has the signature:

(f a b opts)

All opts are passed on to seq-fn, /and/ to us/seq-limit internally, where the options configure the checks on sequence convergence.

Generates an `integrator` function from two functions with the following
signatures and descriptions:

- `(area-fn f a b)` estimates the integral of `f` over the interval `(a, b)`
with no subdivision, nothing clever at all.

- `(seq-fn f a b opts)` returns a sequence of successively refined estimates
of the integral of `f` over `(a, b)`. `opts` can contain kv pairs that
configure the behavior of the sequence function (a sequence of the number of
integration slices to use, for example.)

The returned function has the signature:

`(f a b opts)`

All `opts` are passed on to `seq-fn`, /and/ to `us/seq-limit` internally,
where the options configure the checks on sequence convergence.
raw docstring

openclj/s


open-closedclj/s


open-lclj/s

(open-l [_ r])

open-rclj/s

(open-r [l _])

open?clj/s


update-intervalclj/s

(update-interval opts f)

Accepts:

  • a dictionary of arbitrary options
  • one of the 4 interval modification functions

and returns a dict of options with f applied to the contained interval (or open if no interval is set).

Accepts:

- a dictionary of arbitrary options
- one of the 4 interval modification functions

and returns a dict of options with `f` applied to the contained interval (or
`open` if no interval is set).
raw docstring

with-intervalclj/s

(with-interval opts interval)

Sets the specified interval to a key inside the suppled opts map of arbitrary integration options.

Sets the specified interval to a key inside the suppled `opts` map of arbitrary
integration options.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close