Interface Group<E>
- All Known Subinterfaces:
AbelianGroup<E>, Algebra<E,F>, BanachAlgebra<E, F>, BanachSpace<E, S>, CStarAlgebra<E, F>, DivisionRing<E>, Field<E>, FiniteGroup<E>, GradedAlgebra<E, F>, HilbertSpace<E, S>, LieAlgebra<E, S>, Matrix<E>, Module<M, R>, NonAssociativeAlgebra<E, S>, OrderedGroup<E>, Ring<E>, Vector<E>, VectorSpace<V, F>
- All Known Implementing Classes:
CliffordAlgebra, Complex, Complexes, CyclicGroup, DenseMatrix, DenseVector, DihedralGroup, DoubleField, FreeGroup, GenericMatrix, GenericVector, Integer, Integers, LieGroup, MatrixLieAlgebra, MMapMatrix, NativeRealBig, NativeRealDoubleMatrix, NativeRealDoubleVector, NativeRealFloatMatrix, Octonion, Octonions, PolynomialRing, Quaternion, QuaternionGroup, Quaternions, Rational, Rationals, Real, RealBig, RealDouble, RealDoubleMatrix, RealDoubleVector, RealFloat, RealFloatVector, Reals, SIMDRealDoubleMatrix, SIMDRealFloatMatrix, SO3_1Group, SparseMatrix, SparseVector, SquareMatrices, SU2Group, SU3Group, SymmetricGroup, TiledMatrix, U1Group, Vector2D, Vector3D, Vector4D, VectorND, VectorSpace2D, VectorSpace3D
A group is a set with an associative binary operation, an identity element,
and inverse elements.
Groups are fundamental in mathematics, appearing in geometry, number theory, physics (symmetries), and many other areas.
Mathematical Definition
A group (G, ∗) must satisfy:
- Closure: ∀ a, b ∈ G: a ∗ b ∈ G
- Associativity: ∀ a, b, c ∈ G: (a ∗ b) ∗ c = a ∗ (b ∗ c)
- Identity: ∃ e ∈ G such that ∀ a ∈ G: e ∗ a = a ∗ e = a
- Inverse: ∀ a ∈ G, ∃ a⻹ ∈ G such that: a ∗ a⻹ = a⻹ ∗ a = e
Examples
- (ℤ, +) - Integers with addition
- (ℚ\{0}, ×) - Non-zero rationals with multiplication
- (S₃, ∘) - Symmetric group (permutations of 3 elements)
- (â„Ââ¿, +) - Real vectors with addition
Special Cases
- Abelian Group: Commutative (a ∗ b = b ∗ a)
- Cyclic Group: Generated by single element
- Simple Group: No non-trivial normal subgroups
Usage
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionReturns the inverse of the given element.booleanTests whether this is an abelian (commutative) group.Methods inherited from interface Monoid
identity, isAssociativeMethods inherited from interface Set
contains, description, isEmpty
-
Method Details
-
inverse
Returns the inverse of the given element.For element a, returns a⻹ such that: a ∗ a⻹ = a⻹ ∗ a = e (identity).
- Parameters:
element- the element to invert- Returns:
- the inverse element
- Throws:
NullPointerException- if element is nullIllegalArgumentException- if element is not in this group
-
isCommutative
boolean isCommutative()Tests whether this is an abelian (commutative) group.- Specified by:
isCommutativein interfaceMagma<E>- Returns:
trueif this group is abelian
-