This namespace unites all of the work inside emmy.numerical.quadrature
behind a single interface, fronted by the all-powerful definite-integral
function.
The interface takes f
, an integrand, along with bounds a
and b
:
Optionally, you can provide a dictionary of customizing options. These are passed down to whatever method you supply via the :method
key.
The keys in quad-methods
below define the full range of integration methods available in the package. Each entry in this dictionary is either:
An 'integrator' function that matches the interface above for definite-integral
(possibly created with qc/defintegrator
)
a dictionary of extra options. This must contain a :method
key.
This latter style is used when the method itself is a specialization of a more general method.
The user can specify a method by providing the :method
key in their options with:
The latter two are the allowed value types in quadrature-methods
.
Here we are! The one function you need care about if you're interested in definite integrals. Learn to use this, and then dig in to the details of individual methods if you run into trouble or want to learn more. Enjoy!