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 _ ) As Double |
| C# |
|---|
public double Integrate ( RealFunction integrand, double lowerBound, double upperBound ) |
| C++ |
|---|
public: double Integrate ( RealFunction^ integrand, double lowerBound, double upperBound ) |
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.
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 Status
property to verify that the algorithm terminated normally.