|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.mathematics.analysis.ExactRealFunction
org.jscience.mathematics.analysis.polynomials.ExactRealPolynomial
public class ExactRealPolynomial
A Polynomial as a Ring.Member over a
realField
| Field Summary | |
|---|---|
static ExactRealPolynomial |
ONE
The real polynomial representing the multiplicative identity. |
static ExactRealPolynomial |
ZERO
The real polynomial representing the additive identity. |
| Constructor Summary | |
|---|---|
ExactRealPolynomial(ExactReal[] coeff)
Creates a new instance of ExactRealPolynomial, polynom is always simplified discarding every trailing zeros and array copied (but not contents of elements). |
|
ExactRealPolynomial(ExactReal d,
int degree)
Simple constructor. |
|
ExactRealPolynomial(ExactRealPolynomial polynomial)
Creates a new instance of ExactRealPolynomial, polynom is always simplified discarding every trailing zeros. |
|
ExactRealPolynomial(Field.Member[] f)
Creates a new ExactRealPolynomial object, polynom is always simplified discarding every trailing zeros and array copied (but not contents of elements). |
|
| Method Summary | |
|---|---|
ExactRealFunction |
add(ExactRealFunction g)
The group composition law. |
java.lang.Object |
clone()
|
int |
degree()
The degree understood as the number of coeffiecients, and therefore the highest degree is degree()-1 |
ExactRealFunction |
differentiate()
Differentiate the real polynomial. |
boolean |
equals(java.lang.Object o)
Is this-o == Null ? |
ExactRealPolynomial[] |
euclidianDivision(ExactRealPolynomial divisor)
Perform the euclidian division of two polynomials. |
Field.Member |
getCoefficient(int n)
Get the coefficient of degree k, i.e. |
ExactReal |
getCoefficientAsExactReal(int n)
Get the coefficient of degree k, i.e. |
Field.Member[] |
getCoefficients()
Get the coefficients as an array |
ExactReal[] |
getCoefficientsAsExactReals()
Get the coefficients as an array of ExactReals |
java.lang.Object |
getSet()
|
int |
hashCode()
Some kind of hashcode... |
ExactRealPolynomial |
integrate()
"inverse" operation for differentiate |
boolean |
isOne()
Returns true if this polynomial is equal to one. |
boolean |
isZero()
Returns true if this polynomial is equal to zero. |
ExactReal |
map(ExactReal x)
Evaluates this polynomial. |
ExactRealFunction |
multiply(ExactRealFunction r)
The multiplication law. |
AbelianGroup.Member |
negate()
Returns the inverse member. |
ExactRealPolynomial |
scalarDivide(ExactReal a)
return a new real Polynomial with coefficients divided by a |
Polynomial |
scalarDivide(Field.Member f)
return a new real Polynomial with coefficients divided by f |
ExactRealPolynomial |
scalarMultiply(ExactReal a)
Returns the multiplication of this polynomial by a scalar |
Polynomial |
scalarMultiply(Field.Member f)
Returns the multiplication of this polynomial by a scalar |
void |
setCoefficient(int n,
Field.Member c)
DOCUMENT ME! |
void |
setCoefficientAsExactReal(int n,
ExactReal c)
DOCUMENT ME! |
ExactRealFunction |
subtract(ExactRealFunction g)
The group composition law with inverse. |
ExactComplexPolynomial |
toExactComplexPolynomial()
|
java.lang.String |
toString()
String representation P(x) = a_k x^k +... |
java.lang.String |
toString(java.lang.String unknown)
String representation P(x) = a_k x^k +... |
| Methods inherited from class org.jscience.mathematics.analysis.ExactRealFunction |
|---|
add, compose, divide, divide, getIntervalsList, inverse, map, multiply, setIntervalsList, subtract, taylorExpand, tensor |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jscience.mathematics.algebraic.fields.Ring.Member |
|---|
multiply |
| Methods inherited from interface org.jscience.mathematics.algebraic.groups.AbelianGroup.Member |
|---|
add, subtract |
| Field Detail |
|---|
public static final ExactRealPolynomial ZERO
public static final ExactRealPolynomial ONE
| Constructor Detail |
|---|
public ExactRealPolynomial(ExactReal[] coeff)
coeff - DOCUMENT ME!
java.lang.NullPointerException - DOCUMENT ME!public ExactRealPolynomial(ExactRealPolynomial polynomial)
polynomial - DOCUMENT ME!public ExactRealPolynomial(Field.Member[] f)
f -
java.lang.NullPointerException - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!
public ExactRealPolynomial(ExactReal d,
int degree)
d - coefficientdegree - degree associated with the coefficient| Method Detail |
|---|
public Field.Member getCoefficient(int n)
getCoefficient in interface Polynomialn - degree
public ExactReal getCoefficientAsExactReal(int n)
n - degree
public Field.Member[] getCoefficients()
getCoefficients in interface Polynomialpublic ExactReal[] getCoefficientsAsExactReals()
public void setCoefficient(int n,
Field.Member c)
n -
public void setCoefficientAsExactReal(int n,
ExactReal c)
n - public ExactReal map(ExactReal x)
map in class ExactRealFunctionx - DOCUMENT ME!
public int degree()
degree in interface Polynomialpublic java.lang.Object getSet()
public boolean isZero()
public boolean isOne()
public ExactRealFunction add(ExactRealFunction g)
add in class ExactRealFunctiong - a group member
public ExactRealFunction differentiate()
differentiate in interface C1Functiondifferentiate in class ExactRealFunctionpublic Polynomial scalarDivide(Field.Member f)
scalarDivide in interface Polynomialf - divisor
java.lang.IllegalArgumentException - DOCUMENT ME!public ExactRealPolynomial scalarDivide(ExactReal a)
a - divisor
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the other polynomial
public int hashCode()
hashCode in class java.lang.Objectpublic ExactRealPolynomial integrate()
public Polynomial scalarMultiply(Field.Member f)
scalarMultiply in interface Polynomialf -
java.lang.IllegalArgumentException - DOCUMENT ME!public ExactRealPolynomial scalarMultiply(ExactReal a)
a - factor
public ExactRealFunction multiply(ExactRealFunction r)
multiply in class ExactRealFunctionr - a RealFunction
java.lang.IllegalArgumentException - DOCUMENT ME!public AbelianGroup.Member negate()
negate in interface AbelianGroup.Membernegate in class ExactRealFunctionpublic ExactRealFunction subtract(ExactRealFunction g)
subtract in class ExactRealFunctiong - a group member
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.String unknown)
unknown - The name of the unkwown
public ExactRealPolynomial[] euclidianDivision(ExactRealPolynomial divisor)
divisor - denominator polynomial
public ExactComplexPolynomial toExactComplexPolynomial()
public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||