[−][src]Trait alga::general::AbstractRing
A ring is the combination of an Abelian group and a multiplicative monoid structure.
A ring is equipped with:
-
An abstract operator (usually the addition, "+") that fulfills the constraints of an Abelian group.
An Abelian group is a set with a closed commutative and associative addition with the divisibility property and an identity element.
-
A second abstract operator (usually the multiplication, "×") that fulfills the constraints of a monoid.
A set equipped with a closed associative multiplication with the divisibility property and an identity element.
The multiplication is distributive over the addition:
Distributivity
a, b, c ∈ Self, a × (b + c) = a × b + a × c.
Provided methods
fn prop_mul_and_add_are_distributive_approx(args: (Self, Self, Self)) -> bool where
Self: RelativeEq,
Self: RelativeEq,
Returns true
if the multiplication and addition operators are distributive for
the given argument tuple. Approximate equality is used for verifications.
fn prop_mul_and_add_are_distributive(args: (Self, Self, Self)) -> bool where
Self: Eq,
Self: Eq,
Returns true
if the multiplication and addition operators are distributive for
the given argument tuple.