This dynamic variable holds the default "roundoff cutoff" used by all integrators to decide when to return an estimate based on a single slice, vs attempting to converge a sequence of progressively finer estimates. When this condition is satisfied:
|b - a| / |a| + |b| <= cutoff
An integrator will estimate a single slice directly. Else, it will attempt to converge a sequence.
NOTE - we don't have an interface yet to bind this dynamic variable. bind it manually to modify the cutoff for a specific call to some integrator:
(binding [roundoff-cutoff 1e-6] (integrate f a b))
Implementations of the various intervals used by the adaptive integral interface. By default, integration endpoints are considered open.
These functions modify an interval by opening or closing either of its endpoints.
The following two functions define a shared interface that integration namespaces can use to create an "integrator" from:
The first function is called in the case that the integration range $(a, b)$ (open or closed) is too fine for subdivision. The second function takes over in all other (most!) cases.