Numerically integrates a function of one variable.
Namespace: Extreme.Mathematics.Calculus
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function Integrate ( _ integrand As RealFunction, _ lowerBound As Double, _ upperBound As Double, _ singularities As Double() _ ) As Double |
| C# |
|---|
public double Integrate ( RealFunction integrand, double lowerBound, double upperBound, double[] singularities ) |
| C++ |
|---|
public: double Integrate ( RealFunction^ integrand, double lowerBound, double upperBound, array<double>^ singularities ) |
Parameters
- integrand (Extreme.Mathematics.RealFunction)
- A RealFunction that specifies the function to integrate.
- lowerBound (System.Double)
- The lower limit of the integration interval.
- upperBound (System.Double)
- The upper limit of the integration interval.
- singularities ()
- A Double array containing the points where the integration might encounter difficulties.
Return Value
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.