AngouriMath
SumAll(System.Collections.Generic.IEnumerable{AngouriMath.Entity})
Method (no overloads)
Summary
Sums all the given terms and returns the resulting expression
new Entity[]{ 1, 2, 3 }.SumAll() -> "1 + 2 + 3"
new Entity[]{ 1, 2, 3 }.SumAll() -> "1 + 2 + 3"
Example
The terms are hung into one expression, not added up:
Prints
Console.WriteLine(new Entity[] { 1, 2, 3, 4 }.SumAll());
Console.WriteLine(new Entity[] { 1, 2, 3, 4 }.SumAll().Evaled);Prints
1 + 2 + 3 + 4
10Remarks
The empty sum is 0 , which is what makes
xs.Concat(ys).SumAll() == xs.SumAll() + ys.SumAll() hold for every pair
including the empty one. It used to reachMultiHangBinary 's genuine
precondition and throw anAngouriBugException — whose message asks the caller
to report a bug against this repository, for a list their ownWhere happened
to filter to nothing.
#1028
including the empty one. It used to reach
precondition and throw an
to report a bug against this repository, for a list their own
to filter to nothing.
#1028
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online