|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
org.lsmp.djep.groupJep.values.Polynomial
The ring of polynomials over a ring R.
Constructor Summary | |
Polynomial(RingI baseRing,
java.lang.String symbol,
java.lang.Number[] coeffs)
|
Method Summary | |
Polynomial |
add(Polynomial poly)
|
Complex |
calculateComplexValue(Complex rootVal)
returns the complex value of this polynomial. |
double |
doubleValue()
value of constant coeff. |
boolean |
equals(Polynomial n)
|
float |
floatValue()
value of constant coeff. |
RingI |
getBaseRing()
|
java.lang.Number |
getCoeff(int i)
|
java.lang.Number[] |
getCoeffs()
|
int |
getDegree()
|
java.lang.String |
getSymbol()
|
int |
intValue()
value of constant coeff. |
long |
longValue()
value of constant coeff. |
Polynomial |
mul(Polynomial poly)
|
protected void |
setCoeffs(java.lang.Number[] coeffs)
Sub classes can change the coefficients. |
Polynomial |
sub(Polynomial poly)
|
java.lang.String |
toString()
|
protected Polynomial |
valueOf(java.lang.Number[] lcoeffs)
sub classes should overright this to make the correct type. |
Methods inherited from class java.lang.Number |
byteValue, shortValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Polynomial(RingI baseRing, java.lang.String symbol, java.lang.Number[] coeffs)
Method Detail |
protected void setCoeffs(java.lang.Number[] coeffs)
protected Polynomial valueOf(java.lang.Number[] lcoeffs)
public Polynomial add(Polynomial poly)
public Polynomial sub(Polynomial poly)
public Polynomial mul(Polynomial poly)
public java.lang.String toString()
public int getDegree()
public java.lang.String getSymbol()
public java.lang.Number[] getCoeffs()
public java.lang.Number getCoeff(int i)
public RingI getBaseRing()
public int intValue()
public long longValue()
public float floatValue()
public double doubleValue()
public boolean equals(Polynomial n)
public Complex calculateComplexValue(Complex rootVal)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |