|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.kernel.math.AbstractPolynomial<V>
V
- the variable type.public abstract class AbstractPolynomial<V>
This abstract class is a skeleton implementation of Polynomial.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface sbrt.kernel.math.Polynomial |
---|
Polynomial.Term<V> |
Constructor Summary | |
---|---|
AbstractPolynomial(double constant)
Constructs a new polynomial with the provided constant. |
Method Summary | |
---|---|
protected static void |
checkConstant(double constant)
Ensures the provided constant is not infinite and not NaN. |
double |
getConstant()
Returns the constant of this polynomial. |
int |
hashCode()
Returns a content-based hash code of this polynomial. |
java.lang.String |
toString()
Returns a string representation of this polynomial. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface sbrt.kernel.math.Polynomial |
---|
equals, getTermArray, plugInNumbers, terms |
Methods inherited from interface sbrt.kernel.math.MathExpr |
---|
getVariables, hasAllVariables, hasVariable, hasVariables, variables |
Constructor Detail |
---|
public AbstractPolynomial(double constant)
constant
- the constant of this polynomial.
java.lang.IllegalArgumentException
- if the provided constant is either
infinite or NaN.Method Detail |
---|
public double getConstant()
getConstant
in interface MathExpr<V>
getConstant
in interface Polynomial<V>
public int hashCode()
hashCode
in interface MathExpr<V>
hashCode
in interface Polynomial<V>
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface MathExpr<V>
toString
in interface Polynomial<V>
toString
in class java.lang.Object
protected static void checkConstant(double constant)
constant
- the constant to check.
java.lang.IllegalArgumentException
- if the provided constant is either
infinite or NaN.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |