edu.jas.structure
Interface AbelianGroupElem<C extends AbelianGroupElem<C>>

Type Parameters:
C - element type
All Superinterfaces:
java.lang.Cloneable, java.lang.Comparable<C>, Element<C>, java.io.Serializable
All Known Subinterfaces:
AlgebraElem<A,C>, FieldElem<C>, GcdRingElem<C>, ModulElem<M,C>, Polynomial<C>, RegularRingElem<C>, RingElem<C>, StarRingElem<C>
All Known Implementing Classes:
AlgebraicNumber, BigComplex, BigDecimal, BigInteger, BigOctonion, BigQuaternion, BigRational, Complex, ComplexAlgebraicNumber, ExpVector, ExpVectorByte, ExpVectorInteger, ExpVectorLong, ExpVectorShort, GenMatrix, GenPolynomial, GenSolvablePolynomial, GenVector, Local, Local, ModInteger, ModLong, MultiVarPowerSeries, Product, Quotient, Quotient, RealAlgebraicNumber, RealAlgebraicNumber, Residue, Residue, UnivPowerSeries

public interface AbelianGroupElem<C extends AbelianGroupElem<C>>
extends Element<C>

Abelian group element interface. Defines the additive methods.

Author:
Heinz Kredel

Method Summary
 C abs()
          Absolute value of this.
 boolean isZERO()
          Test if this is zero.
 C negate()
          Negate this.
 int signum()
          Signum.
 C subtract(C S)
          Subtract S from this.
 C sum(C S)
          Sum of this and S.
 
Methods inherited from interface edu.jas.structure.Element
compareTo, equals, factory, hashCode, toScript, toScriptFactory
 

Method Detail

isZERO

boolean isZERO()
Test if this is zero.

Returns:
true if this is 0, else false.

signum

int signum()
Signum.

Returns:
the sign of this.

sum

C sum(C S)
Sum of this and S.

Parameters:
S -
Returns:
this + S.

subtract

C subtract(C S)
Subtract S from this.

Parameters:
S -
Returns:
this - S.

negate

C negate()
Negate this.

Returns:
- this.

abs

C abs()
Absolute value of this.

Returns:
|this|.