AdaptiveIntegrator.Integrate Method

Definition

Namespace: Numerics.NET.Calculus
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

Integrate() Numerically integrates a function of one variable.
Integrate(ParallelOptions) Numerically integrates a function of one variable.
Integrate(Double, Double) Numerically integrates a function of one variable.
Integrate(Double, Double, ParallelOptions) Numerically integrates a function of one variable.
Integrate(Func<Double, Double>, Double, Double) Numerically integrates a function of one variable.
Integrate(Func<Double, Double>, Double, Double, Double[]) Numerically integrates a function of one variable.
Integrate(Func<Double, Double>, Double, Double, ParallelOptions) Numerically integrates a function of one variable.

Integrate(Func<Double, Double>, Double, Double, Double[])

Numerically integrates a function of one variable.
C#
public double Integrate(
	Func<double, double> integrand,
	double lowerBound,
	double upperBound,
	double[] singularities
)

Parameters

integrand  Func<Double, Double>
A delegate that represents a function of one variable that specifies the function to integrate.
lowerBound  Double
The lower limit of the integration interval.
upperBound  Double
The upper limit of the integration interval.
singularities  Double[]
A Double array containing the points where the integration might encounter difficulties.

Return Value

Double
An approximation of the definite integral of integrand from lowerBound to upperBound.

Remarks

This method performs the actual numerical integration. After this method returns, inspect the AlgorithmStatus property to verify that the algorithm terminated normally.

Depending on the nature of the integrand and the desired accuracy, this operation may take a long time to complete.

If the SetSingularities(Double[]) method has been called with at least one parameter, then Extrapolation is always used.

See Also