public class Polynomial extends Number
| Constructor and Description |
|---|
Polynomial(RingI baseRing,
String symbol,
Number[] coeffs)
Construct a polynomial over a ring.
|
| Modifier and Type | Method and Description |
|---|---|
Polynomial |
add(Polynomial poly) |
Complex |
calculateComplexValue(Complex rootVal)
returns the complex value of this polynomial.
|
Number |
calculateValue(Number rootVal) |
Polynomial |
div(Polynomial poly) |
double |
doubleValue()
value of constant coeff.
|
boolean |
equals(Polynomial n) |
float |
floatValue()
value of constant coeff.
|
RingI |
getBaseRing() |
Number |
getCoeff(int i) |
Number[] |
getCoeffs()
Returns the coefficients of polynomial.
|
int |
getDegree() |
String |
getSymbol() |
int |
intValue()
value of constant coeff.
|
boolean |
isConstantPoly()
Is this a constant polynomial?
|
long |
longValue()
value of constant coeff.
|
Polynomial |
mul(Polynomial poly) |
Polynomial |
pow(int exp) |
Polynomial |
sub(Polynomial poly) |
String |
toString() |
byteValue, shortValuepublic Polynomial(RingI baseRing, String symbol, Number[] coeffs)
baseRing - the underlying ring of the polynomial.symbol - the symbol used to display the polynomialcoeffs - an array of coeficients in the base ring coeff[0] is constant, coeff[1] is coefficient of t etc.public Polynomial add(Polynomial poly)
public Polynomial sub(Polynomial poly)
public Polynomial mul(Polynomial poly)
public Polynomial div(Polynomial poly)
public Polynomial pow(int exp)
public int getDegree()
public String getSymbol()
public Number[] getCoeffs()
public Number getCoeff(int i)
public RingI getBaseRing()
public float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic boolean isConstantPoly()
public boolean equals(Polynomial n)
public Complex calculateComplexValue(Complex rootVal)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics