GaussLegendreRuleIntegrate(FuncDouble, Double, Double, Double, Int32) Method |
Approximates a definite integral using an Nth order Gauss-Legendre rule.
Namespace: Altaxo.Calc.IntegrationAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static double Integrate(
Func<double, double> f,
double invervalBegin,
double invervalEnd,
int order
)
Parameters
- f FuncDouble, Double
- The analytic smooth function to integrate.
- invervalBegin Double
- Where the interval starts, exclusive and finite.
- invervalEnd Double
- Where the interval ends, exclusive and finite.
- order Int32
- Defines an Nth order Gauss-Legendre rule. The order also defines the number of abscissas and weights for the rule. Precomputed Gauss-Legendre abscissas/weights for orders 2-20, 32, 64, 96, 100, 128, 256, 512, 1024 are used, otherwise they're calculated on the fly.
Return Value
DoubleApproximation of the finite integral in the given interval.
See Also