Semiring.js

A semiring is a mathematical construct that abstracts some notion of "plus" and "times" on mathematical objects. These objects can be numbers, but may also be other objects such as strings.

More formally, a semiring is a set RR equipped with two binary operations \oplus and \otimes , called addition and multiplication, such that:

Different semirings are useful for different purposes. Select a semiring below to get more information.