public class FreeGroup extends Group implements RingI
Modifier and Type | Field and Description |
---|---|
protected RingI |
baseRing |
protected Complex |
rootVal |
protected java.lang.String |
symbol |
protected FreeGroupElement |
tPoly |
protected FreeGroupElement |
unitPoly |
protected FreeGroupElement |
zeroPoly |
Constructor and Description |
---|
FreeGroup(RingI K,
java.lang.String symbol)
Create the ring K(t) where t is a free variable.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Number |
add(java.lang.Number a,
java.lang.Number b)
Get sum of the numbers
|
void |
addStandardConstants(JEP j)
adds the standard constants for this group.
|
boolean |
equals(java.lang.Number a,
java.lang.Number b)
whether two numbers are equal
|
RingI |
getBaseRing()
Returns the base ring of this extension.
|
java.lang.Number |
getInverse(java.lang.Number a)
Get Inverse of a number
|
java.lang.Number |
getONE()
Get multiplicative identity i.e. 1.
|
Complex |
getRootVal()
Returns an approximation to the value of the root as a complex number.
|
java.lang.String |
getSymbol()
Returns the symbol used to denote the generator.
|
java.lang.Number |
getTPoly() |
java.lang.Number |
getZERO()
Returns the identity element under +
|
boolean |
isConstantPoly(java.lang.Number poly)
Whether the given polynomial is constant.
|
java.lang.Number |
mul(java.lang.Number a,
java.lang.Number b)
Returns the product of two numbers, a*b
|
void |
setRootVal(Complex complex)
Sets the value used to approximate the root as a complex number.
|
boolean |
setRootVal(java.lang.String sym,
Complex val)
Sets the root value for given symbol.
|
java.lang.Number |
sub(java.lang.Number a,
java.lang.Number b)
Get the difference of the numbers.
|
java.lang.String |
toString() |
java.lang.Number |
valueOf(java.lang.Number[] coeffs) |
java.lang.Number |
valueOf(java.lang.String s)
returns number given by the string
|
addStandardFunctions, getNumberFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addStandardFunctions, getNumberFactory
protected RingI baseRing
protected FreeGroupElement zeroPoly
protected FreeGroupElement unitPoly
protected FreeGroupElement tPoly
protected java.lang.String symbol
protected Complex rootVal
public FreeGroup(RingI K, java.lang.String symbol)
K
- the Ring this is an extension of.symbol
- the name of the free variable.public java.lang.Number add(java.lang.Number a, java.lang.Number b)
GroupI
public java.lang.Number sub(java.lang.Number a, java.lang.Number b)
GroupI
public java.lang.Number mul(java.lang.Number a, java.lang.Number b)
RingI
public boolean equals(java.lang.Number a, java.lang.Number b)
GroupI
public java.lang.Number valueOf(java.lang.String s)
GroupI
public java.lang.Number valueOf(java.lang.Number[] coeffs)
public java.lang.Number getZERO()
GroupI
public java.lang.Number getONE()
RingI
public java.lang.Number getTPoly()
public java.lang.Number getInverse(java.lang.Number a)
GroupI
getInverse
in interface GroupI
public void addStandardConstants(JEP j)
Group
addStandardConstants
in interface GroupI
addStandardConstants
in class Group
public RingI getBaseRing()
public void setRootVal(Complex complex)
public boolean setRootVal(java.lang.String sym, Complex val)
sym
- the symbol to setval
- the complex valuepublic Complex getRootVal()
public java.lang.String getSymbol()
public boolean isConstantPoly(java.lang.Number poly)
isConstantPoly
in interface GroupI
isConstantPoly
in class Group
http://www.singularsys.com/jep Copyright © 2007 Singular Systems