Click or drag to resize

NewtonCotesTrapeziumRuleIntegrateAdaptive Method

Adaptive approximation of the definite integral in the provided interval by the trapezium rule.

Namespace: Altaxo.Calc.Integration
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double IntegrateAdaptive(
	Func<double, double> f,
	double intervalBegin,
	double intervalEnd,
	double targetError
)

Parameters

f  FuncDouble, Double
The analytic smooth function to integrate.
intervalBegin  Double
Where the interval starts, inclusive and finite.
intervalEnd  Double
Where the interval stops, inclusive and finite.
targetError  Double
The expected accuracy of the approximation.

Return Value

Double
Approximation of the finite integral in the given interval.
See Also