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 I didn't know you had maths A level!
Yes, 'doing sums' is often used to mean any calculation.
@christianp indeed, I do. Good to know that my British English is not completely out of date (yet).
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!