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, getNumberFactoryequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddStandardFunctions, getNumberFactorypublic Number add(Number a, Number b)
GroupIpublic Number sub(Number a, Number b)
GroupIpublic Number mul(Number a, Number b)
RingIpublic boolean equals(Number a, Number b)
GroupIpublic Number valueOf(String s)
GroupIpublic Number getZERO()
GroupIpublic Number getONE()
RingIpublic Number getTPoly()
public Number getInverse(Number a)
GroupIgetInverse in interface GroupIpublic void addStandardConstants(JEP j)
GroupaddStandardConstants in interface GroupIaddStandardConstants in class Grouppublic 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 GroupIisConstantPoly in class GroupJas4pp 1.5 © Java Analysis Studio for Particle Physics