public class FreeGroup extends Group implements RingI
Constructor and Description |
---|
FreeGroup(RingI K,
String symbol)
Create the ring K(t) where t is a free variable.
|
Modifier and Type | Method and Description |
---|---|
Number |
add(Number a,
Number b)
Get sum of the numbers
|
void |
addStandardConstants(JEP j)
adds the standard constants for this group.
|
boolean |
equals(Number a,
Number b)
whether two numbers are equal
|
RingI |
getBaseRing()
Returns the base ring of this extension.
|
Number |
getInverse(Number a)
Get Inverse of a number
|
Number |
getONE()
Get multiplicative identity i.e.
|
Complex |
getRootVal()
Returns an approximation to the value of the root as a complex number.
|
String |
getSymbol()
Returns the symbol used to denote the generator.
|
Number |
getTPoly() |
Number |
getZERO()
Returns the identity element under +
|
boolean |
isConstantPoly(Number poly)
Whether the given polynomial is constant.
|
Number |
mul(Number a,
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(String sym,
Complex val)
Sets the root value for given symbol.
|
Number |
sub(Number a,
Number b)
Get the difference of the numbers.
|
String |
toString() |
Number |
valueOf(Number[] coeffs) |
Number |
valueOf(String s)
returns number given by the string
|
addStandardFunctions, getNumberFactory
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addStandardFunctions, getNumberFactory
public Number add(Number a, Number b)
GroupI
public Number sub(Number a, Number b)
GroupI
public Number mul(Number a, Number b)
RingI
public boolean equals(Number a, Number b)
GroupI
public Number valueOf(String s)
GroupI
public Number getZERO()
GroupI
public Number getONE()
RingI
public Number getTPoly()
public Number getInverse(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(String sym, Complex val)
sym
- the symbol to setval
- the complex valuepublic Complex getRootVal()
public String getSymbol()
public boolean isConstantPoly(Number poly)
isConstantPoly
in interface GroupI
isConstantPoly
in class Group
Jas4pp 1.5 © Java Analysis Studio for Particle Physics