Sum
Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand.
Sum(f, [a, b]) computes the sum of f from a to b; Sum(L) sums the elements of a collection L
✓ checked against that system · ! checked, with disagreements (hover a chip)Wikipedia
SummationMathWorldSumWikidataQ218005Britannicatopic/summandFungrimSum✓Fungrim entryFindStatSt000165via ParkingFunction✓Wolfram LanguageSum✓Sum(any, tuple*) -> numberSum(f, [a, b]) computes the sum of f from a to b; Sum(L) sums the elements of a collection LSageMath
sum(any, tuple*)SymPysummation(any, tuple*)Typed signatures
| Type | Package | Applies |
|---|---|---|
(any, tuple*) -> number | analyticreplaces evaluation | always |
(any, tuple*) -> number | compute-engine | always |
(any, tuple*) -> number | evaluationreplaces compute-engine | always |
Examples
Basic #
About
| Examples | 6 |
|---|---|
| Checked against | Wolfram Language 3 agreeSageMath 3 agreeSymPy 3 agreemathlib4 1 agree |
| Crosswalk | WikipediaMathWorldWikidataBritannicaFungrimFungrim entry ×47FindStatWolfram LanguageSageMathSymPy |
Implementation
mapped
sympypackages/oracle/src/mappings.tsThe iterator (Limits or Tuple, k from a to b, or from 1 when a is Nothing) is emitted as SymPy's (k, a, b). SymPy sums reversed bounds by Karr's convention: b < a - 1 gives a negative sum.
mapped
sagepackages/oracle/src/mappings.tsmapped
mathlib4packages/oracle/src/mappings.tsThe emitter reads the iterator Limits(k, a, b) or Tuple(k, a, b), from 1 when a is Nothing or left out, as the summand's lambda, a and b. Over ℤ, or ℕ where the summand needs one. An empty range is 0, as ours.