Numerically integrates a function of one variable.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static double Integrate(
this Func<double, double> integrand,
double lowerBound,
double upperBound
)
<ExtensionAttribute>
Public Shared Function Integrate (
integrand As Func(Of Double, Double),
lowerBound As Double,
upperBound As Double
) As Double
public:
[ExtensionAttribute]
static double Integrate(
Func<double, double>^ integrand,
double lowerBound,
double upperBound
)
[<ExtensionAttribute>]
static member Integrate :
integrand : Func<float, float> *
lowerBound : float *
upperBound : float -> float
Parameters
- integrand
- Type: SystemFuncDouble, Double
A delegate that represents a function of one variable
that specifies the function to integrate. - lowerBound
- Type: SystemDouble
The lower limit of the integration
interval. - upperBound
- Type: SystemDouble
The upper limit of the integration
interval.
Return Value
Type:
DoubleAn approximation of the definite integral of
integrand from
lowerBound to
upperBound.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
FuncDouble,
Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Reference