13 internal static readonly
Integer zero =
new Integer(BigInteger.Zero);
14 internal static readonly
Integer one =
new Integer(BigInteger.One);
15 private static readonly
int hashCode = typeof(
Integers).FullName.GetHashCode();
48 return (Obj is BigInteger) || (Obj is
double d && Math.Truncate(d) == d);
52 public override bool Equals(
object obj)
86 BigInteger Result = BigInteger.DivRem(l, r, out BigInteger Residue);
87 Remainder =
new Integer(Residue);
Base class for all types of elements.
abstract object AssociatedObjectValue
Associated object value.
Base class for all types of euclidian domains.
Euclidian domain of integers.
override bool Contains(IElement Element)
Checks if the set contains an element.
static readonly Integers Instance
Instance of the set of integers.
override string ToString()
override ICommutativeRingWithIdentityElement One
Returns the identity element of the commutative ring with identity.
override int GetHashCode()
Calculates a hash code of the element. Hash code.
Integers()
Euclidian domain of integers.
override bool Equals(object obj)
Compares the element to another. If elements are equal.
override IEuclidianDomainElement Divide(IEuclidianDomainElement Left, IEuclidianDomainElement Right, out IEuclidianDomainElement Remainder)
Divides the right ring element from the left one: Left/Right
override IAbelianGroupElement Zero
Returns the zero element of the group.
Basic interface for all types of abelian group elements.
Basic interface for all types of commutative ring with identity elements.
Basic interface for all types of elements.
object AssociatedObjectValue
Associated object value.
Basic interface for all types of Euclidian domain elements.