Class ComplexNumbers
java.lang.Object
dk.jonaslindstrom.ruffini.reals.structures.ComplexNumbers
- All Implemented Interfaces:
AdditiveGroup<ComplexNumber>
,CommutativeMonoid<ComplexNumber>
,Field<ComplexNumber>
,Group<ComplexNumber>
,Monoid<ComplexNumber>
,Ring<ComplexNumber>
,Semigroup<ComplexNumber>
,SemiRing<ComplexNumber>
,Set<ComplexNumber>
-
Method Summary
Modifier and TypeMethodDescriptionadd
(ComplexNumber a, ComplexNumber b) Return the result of a+b.boolean
equals
(ComplexNumber a, ComplexNumber b) Returnstrue
if and only if a = b as elements of this set.static ComplexNumbers
identity()
Return the identity element of this monoid.Return the inverse a-1.Return the result of the product ab in this group.Return -a.toString()
Returns a human-readable string representation of an element in this set.zero()
Return the zero element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.AdditiveGroup
doubling, isZero, scale, scale, subtract, sum
Methods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.CommutativeMonoid
add, add
Methods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.Monoid
isIdentity, power
-
Method Details
-
getInstance
-
invert
Description copied from interface:Group
Return the inverse a-1.- Specified by:
invert
in interfaceGroup<ComplexNumber>
-
identity
Description copied from interface:Monoid
Return the identity element of this monoid.- Specified by:
identity
in interfaceMonoid<ComplexNumber>
-
multiply
Description copied from interface:Semigroup
Return the result of the product ab in this group.- Specified by:
multiply
in interfaceSemigroup<ComplexNumber>
-
toString
Description copied from interface:Set
Returns a human-readable string representation of an element in this set.- Specified by:
toString
in interfaceSet<ComplexNumber>
-
equals
Description copied from interface:Set
Returnstrue
if and only if a = b as elements of this set.- Specified by:
equals
in interfaceSet<ComplexNumber>
-
add
Description copied from interface:CommutativeMonoid
Return the result of a+b.- Specified by:
add
in interfaceCommutativeMonoid<ComplexNumber>
-
negate
Description copied from interface:AdditiveGroup
Return -a.- Specified by:
negate
in interfaceAdditiveGroup<ComplexNumber>
-
zero
Description copied from interface:CommutativeMonoid
Return the zero element.- Specified by:
zero
in interfaceCommutativeMonoid<ComplexNumber>
-
toString
-