Gaussian 12-point quadrature with Richardson extrapolation.
integrand as function, may have singularities at the endpoints.
endpoints of the integration interval.
Additional parameters to be passed to the function
quadgr uses a 12-point Gauss-Legendre quadrature.
The error estimate is based on successive interval bisection. Richardson
extrapolation accelerates the convergence for some integrals, especially
integrals with endpoint singularities.
Through some preprocessing infinite intervals can also be handled.
Copyright (c) 2009 Jonas Lundgren for the Matlab function
available on MatlabCentral under the BSD license.
R re-implementation by HwB, email: <[email protected]>, in 2011.
1 2 3 4 5 6 7
$value  1.644934 $rel.err  2.071676e-13
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.