Product
Method with 2 overloads
Product(AngouriMath.Entity,AngouriMath.Entity,AngouriMath.Entity,AngouriMath.Entity)
Summary
A product ofexpr asvar runs from
from toto inclusive. Mirrors
Sum(AngouriMath.Entity,AngouriMath.Entity,AngouriMath.Entity,AngouriMath.Entity), with an empty range multiplying to
1 .
Parameter "expr"
The factor. It may mentionvar .Parameter "var"
The index, which this binds.Parameter "from"
The first value of the index.Parameter "to"
The last value of the index, inclusive.Returns
The product written out where the bounds are concrete integers and there are not too
many terms; a closed form where the factor is a monomial in the index — a
narrower class than the sum's, a product having no linearity to take a sum of terms
apart with; and an unevaluated node otherwise.
Remarks
The closed form's condition isto >= from rather than the sum's
to >= from - 1 : at the empty range itself it would bec ^ 0 , which is
undefined atc = 0 where the empty product is1 . Where the index is in
the factor the lower bound must be a concrete integer of at least one, since the
answer is a ratio of factorials andfactorial has no value at the negative
integers.
Example
using System; using AngouriMath; using static AngouriMath.MathS; Console.WriteLine(Product("k", "k", 1, 5).Simplify());
Prints
120Product(AngouriMath.Entity,AngouriMath.Entity,AngouriMath.Entity)
Summary
The product ofexpr over the members ofover as
var ranges over it, each member counted once: written
product(expr, var in over) . The product over no members is 1.
Parameter "expr"
The factor, as a function ofvar .Parameter "var"
The name that ranges over the set, bound by the product.Parameter "over"
The set.Returns
The factors multiplied out where Sum(AngouriMath.Entity,AngouriMath.Entity,AngouriMath.Entity) would add its
terms up: a listed set of numbers, or roots of a polynomial that are rational, roots of
a quadratic or roots of a binomial. Left as written otherwise.
Remarks
Example
using System; using static AngouriMath.MathS; Console.WriteLine(Product("p", "p", "PP /\\ [1; 10]").Simplify());
Prints
210
Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6091 pages online