Computes the product of an expression evaluated over the specified range.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static double Product(
Func<int, double> factors,
int lowerBound,
int upperBound
)
Public Shared Function Product (
factors As Func(Of Integer, Double),
lowerBound As Integer,
upperBound As Integer
) As Double
public:
static double Product(
Func<int, double>^ factors,
int lowerBound,
int upperBound
)
static member Product :
factors : Func<int, float> *
lowerBound : int *
upperBound : int -> float
Parameters
- factors
- Type: SystemFuncInt32, Double
A delegate that returns the value of the specified factor. - lowerBound
- Type: SystemInt32
The (inclusive) lower bound of the product. - upperBound
- Type: SystemInt32
The (exclusive) upper bound of the product.
Return Value
Type:
DoubleThe product of
factors evaluated at all integers from
lowerBound up to but not including
upperBound.
Reference