Please check the build logs for more information.

See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.

If you believe this is docs.rs' fault, open an issue.

# Integrators

A Rust crate which provides a generic interface for numerical integrators. It includes implementations of this interface for integrators from the GSL and Cuba libraries.

## GSL Wrappers

On Ubuntu-based systems, these wrappers should work with `libgsl-dev`

. If you do not wish to use these wrappers, you can disable them by disabling the `gsl`

feature.
These algorithms can only integrate one dimensional integrals.

See the GSL docs here for a complete list of integration algorithms. Currently, only four wrappers are implemented:

- QAG is a general, adaptive integration algorithm which should work for most well-behaved functions.
- QNG is a similarly general,
*non*-adaptive algorithm, which applies a series of fixed-order quadrature rules. This algorithm requires less overhead than QAG, and so may provide a performance boost for functions which are known to be easily integrable. - QAGS is an adaptive, general algorithm which can handle some kinds of singularities.
- QAGP is the same algorithm as QAGS, but requires the user to provide a list of known locations of singularities.

I will add wrappers for more functions as I go.

## Cuba Wrappers

Cuba is a suite of advanced multidimensional numerical integration algorithms, including both Monte Carlo and deterministic
methods. See its documentation here for details and installation instructions.
If you do not wish to use these wrappers, you can disable them by disabling the `cuba`

feature.

Cuba has four algorithms: Vegas, Suave, Cuhre, and Divonne. Currently, wrappers are only implemented for the first three; the last has a number of extra arguments for finding singularities which I have not addressed yet.

## Examples

This example will integrate a Gaussian over a given range with a GSL integrator. In reality, of course, you should probably find an `erf()`

implementation to call instead, but this illustrates its use.

```
extern crate integrators;
use ;
```