|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsmp.djep.groupJep.groups.Group
org.lsmp.djep.groupJep.groups.FreeGroup
public class FreeGroup
A free group generated by a symbol t.
| Field Summary | |
|---|---|
protected RingI |
baseRing
|
protected Complex |
rootVal
|
protected String |
symbol
|
protected FreeGroupElement |
tPoly
|
protected FreeGroupElement |
unitPoly
|
protected FreeGroupElement |
zeroPoly
|
| Constructor Summary | |
|---|---|
FreeGroup(RingI K,
String symbol)
Create the ring K(t) where t is a free variable. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.lsmp.djep.groupJep.groups.Group |
|---|
addStandardFunctions, getNumberFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.lsmp.djep.groupJep.GroupI |
|---|
addStandardFunctions, getNumberFactory |
| Field Detail |
|---|
protected RingI baseRing
protected FreeGroupElement zeroPoly
protected FreeGroupElement unitPoly
protected FreeGroupElement tPoly
protected String symbol
protected Complex rootVal
| Constructor Detail |
|---|
public FreeGroup(RingI K,
String symbol)
K - the Ring this is an extension of.symbol - the name of the free variable.| Method Detail |
|---|
public Number add(Number a,
Number b)
GroupI
add in interface GroupI
public Number sub(Number a,
Number b)
GroupI
sub in interface GroupI
public Number mul(Number a,
Number b)
RingI
mul in interface RingI
public boolean equals(Number a,
Number b)
GroupI
equals in interface GroupIpublic Number valueOf(String s)
GroupI
valueOf in interface GroupIpublic Number valueOf(Number[] coeffs)
public Number getZERO()
GroupI
getZERO in interface GroupIpublic Number getONE()
RingI
getONE in interface RingIpublic Number getTPoly()
public Number getInverse(Number a)
GroupI
getInverse in interface GroupIpublic void addStandardConstants(JEP j)
Group
addStandardConstants in interface GroupIaddStandardConstants in class Grouppublic String toString()
toString in class Grouppublic RingI getBaseRing()
public void setRootVal(Complex complex)
public boolean setRootVal(String sym,
Complex val)
sym - the symbol to setval - the complex value
public Complex getRootVal()
public String getSymbol()
public boolean isConstantPoly(Number poly)
isConstantPoly in interface GroupIisConstantPoly in class Group
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||