In mathematics, a ring is an algebraic structure consisting of a set with two binary operations typically called addition and multiplication and denoted like addition and multiplication of integers. They work similarly to integer addition and multiplication, except that multiplication in a ring does not need to be commutative. Ring elements may be numbers such as integers or complex numbers, but they may also be non-numerical objects such as polynomials, square matrices, functions, and power series.
More formally, a ring is a set that is endowed with two binary operations (addition and multiplication) such that the ring is an abelian group with respect to addition. The multiplication is associative, is distributive over the addition operation, and has a multiplicative identity element. Some authors apply the term ring to a further generalization, often called a rng, that omits the requirement for a multiplicative identity, and instead call the structure defined above a ring with identity.