Numerically integrates a function of one variable.
Namespace: Extreme.Mathematics.CalculusAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public double Integrate(
Func<Vector, double> integrand,
Vector lowerBounds,
Vector upperBounds,
ParallelOptions parallelOptions
)
Public Function Integrate (
integrand As Func(Of Vector, Double),
lowerBounds As Vector,
upperBounds As Vector,
parallelOptions As ParallelOptions
) As Double
public:
double Integrate(
Func<Vector^, double>^ integrand,
Vector^ lowerBounds,
Vector^ upperBounds,
ParallelOptions^ parallelOptions
)
member Integrate :
integrand : Func<Vector, float> *
lowerBounds : Vector *
upperBounds : Vector *
parallelOptions : ParallelOptions -> float
Parameters
- integrand
- Type: SystemFuncVector, Double
A multivariate function
that specifies the function to integrate. - lowerBounds
- Type: Extreme.MathematicsVector
A Vector containing the lower bounds of the integration region. - upperBounds
- Type: Extreme.MathematicsVector
A Vector containing the upper bounds of the integration region. - parallelOptions
- Type: System.Threading.TasksParallelOptions
A ParallelOptions value that specifies the parallel behavior of the algorithm.
Return Value
Type:
DoubleAn approximation of the definite integral of
integrand over a region with lower bounds specified by
lowerBounds
and upper bounds specified by
upperBounds.
Exception | Condition |
---|
ArgumentNullException | integrand is .
-or- lowerBounds is . -or- upperBounds is . |
DimensionMismatchException |
The length of lowerBounds is not equal to the length of
upperBounds.
-or- The length of lowerBounds and
upperBounds is not equal to the number of parameters
of the Integrand.
|
This method performs the actual numerical integration. After
this method returns, inspect the Status
property to verify that the algorithm terminated normally.
Numerical Libraries
Supported in: 5.x, 4.x
Reference