Function Math.Product Method
Computes the product of an expression evaluated over the specified range.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
The product of factors evaluated at all integers from lowerBound up to but not including upperBound.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static double Product(
Func<int, double> factors,
int lowerBound,
int upperBound
)
Parameters
- factors Func<Int32, Double>
- A delegate that returns the value of the specified factor.
- lowerBound Int32
- The (inclusive) lower bound of the product.
- upperBound Int32
- The (exclusive) upper bound of the product.
Return Value
DoubleThe product of factors evaluated at all integers from lowerBound up to but not including upperBound.
Exceptions
Argument | factors is null. |