Adaptive Integrator.Integrate Method
Definition
Namespace: Numerics.NET.Calculus
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Integrate() | Numerically integrates a function of one variable. |
Integrate( | Numerically integrates a function of one variable. |
Integrate( | Numerically integrates a function of one variable. |
Integrate( | Numerically integrates a function of one variable. |
Integrate( | Numerically integrates a function of one variable. |
Integrate( | Numerically integrates a function of one variable. |
Integrate( | Numerically integrates a function of one variable. |
Integrate(Func<Double, Double>, Double, Double, Double[])
Numerically integrates a function of one variable.
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
DoubleAn 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.