Class ClassGroup
java.lang.Object
dk.jonaslindstrom.ruffini.quadraticform.ClassGroup
- All Implemented Interfaces:
Group<QuadraticForm<BigInteger,,BigIntegers>> Monoid<QuadraticForm<BigInteger,,BigIntegers>> Semigroup<QuadraticForm<BigInteger,,BigIntegers>> Set<QuadraticForm<BigInteger,BigIntegers>>
This implements the ideal class group for a negative discriminant.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif and only if a = b as elements of this set.identity()Return the identity element of this monoid.Return the inverse a-1.Return the result of the product ab in this group.Returns a human-readable string representation of an element in this set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.Monoid
isIdentity, power
-
Constructor Details
-
ClassGroup
-
-
Method Details
-
invert
Description copied from interface:GroupReturn the inverse a-1.- Specified by:
invertin interfaceGroup<QuadraticForm<BigInteger,BigIntegers>>
-
identity
Description copied from interface:MonoidReturn the identity element of this monoid.- Specified by:
identityin interfaceMonoid<QuadraticForm<BigInteger,BigIntegers>>
-
multiply
public QuadraticForm<BigInteger,BigIntegers> multiply(QuadraticForm<BigInteger, BigIntegers> a, QuadraticForm<BigInteger, BigIntegers> b) Description copied from interface:SemigroupReturn the result of the product ab in this group.- Specified by:
multiplyin interfaceSemigroup<QuadraticForm<BigInteger,BigIntegers>>
-
toString
Description copied from interface:SetReturns a human-readable string representation of an element in this set.- Specified by:
toStringin interfaceSet<QuadraticForm<BigInteger,BigIntegers>>
-
equals
public boolean equals(QuadraticForm<BigInteger, BigIntegers> a, QuadraticForm<BigInteger, BigIntegers> b) Description copied from interface:SetReturnstrueif and only if a = b as elements of this set.- Specified by:
equalsin interfaceSet<QuadraticForm<BigInteger,BigIntegers>>
-
sample
-