A 'sum' is a sequence of terms joined by addition.
A 'product' is a sequence of terms joined by multiplication.
Is there a general term for terms joined by a general associative operation, that mathematicians would know? Is it 'sequence'?
In Haskell this would be implemented as a fold, but what do you call the thing it acts on? 'Iterable' and 'Enumerable' are too computer-sciencey.
It's possible this question has no good answer.
@christianp I'd probably argue that "product" has a more general meaning in mathematics, even at school level (A level anyway). https://en.wikipedia.org/wiki/Product_(mathematics)#Products_in_linear_algebra
More abstractly, associativity holds for semigroups and people talk about products there, too.
@pkra yeah, that's unfortunate, because it's such an overloaded term. If I say 'products', then a large portion of my readers will assume it doesn't include sums
@christianp also, I vaguely recall from getting my maths A level that "doing sums" was often used generically for "solve the problem" in the UK. Arguably, a long long time ago...
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!