| TrapezoidalIntegratorFIntegrate Method |
Integrates the specified function within the given interval.
Namespace: DigitalRune.Mathematics.AnalysisAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public override float Integrate(
Func<float, float> function,
float lowerBound,
float upperBound
)
Public Overrides Function Integrate (
function As Func(Of Single, Single),
lowerBound As Single,
upperBound As Single
) As Single
public:
virtual float Integrate(
Func<float, float>^ function,
float lowerBound,
float upperBound
) override
abstract Integrate :
function : Func<float32, float32> *
lowerBound : float32 *
upperBound : float32 -> float32
override Integrate :
function : Func<float32, float32> *
lowerBound : float32 *
upperBound : float32 -> float32
Parameters
- function
- Type: SystemFuncSingle, Single
The function. - lowerBound
- Type: SystemSingle
The lower bound. - upperBound
- Type: SystemSingle
The upper bound.
Return Value
Type:
Single
The integral of the given function over the interval
[
lowerBound,
upperBound].
Exceptions See Also