|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectJSci.maths.polynomials.RealPolynomial
public class RealPolynomial
A Polynomial as a Ring.Member over a real Field
| Field Summary |
|---|
| Fields inherited from interface JSci.maths.polynomials.Polynomial |
|---|
POLYEPS |
| Constructor Summary | |
|---|---|
RealPolynomial(double[] coeff)
Creates a new instance of RealPolynomial |
|
RealPolynomial(Field.Member[] f)
Creates a new RealPolynomial object. |
|
| Method Summary | |
|---|---|
AbelianGroup.Member |
add(AbelianGroup.Member g)
The group composition law. |
int |
degree()
The degree |
RealPolynomial |
differentiate()
Differentiate the real polynomial. |
RealPolynomial |
divide(double a)
return a new real Polynomial with coefficients divided by a |
Polynomial |
divide(Field.Member f)
return a new real Polynomial with coefficients divided by f |
boolean |
equals(java.lang.Object o)
Is this-o == Null ? |
Field.Member |
getCoefficient(int n)
Get the coefficient of degree k, i.e. |
double |
getCoefficientAsDouble(int n)
Get the coefficient of degree k, i.e. |
Field.Member[] |
getCoefficients()
Get the coefficients as an array |
double[] |
getCoefficientsAsDoubles()
Get the coefficients as an array of doubles |
int |
hashCode()
Some kind of hashcode... |
RealPolynomial |
integrate()
"inverse" operation for differentiate |
boolean |
isNull()
Does this polynomial represent a "NULL". |
boolean |
isOne()
Does this polynomial represent a "ONE". |
RealPolynomial |
multiply(double a)
Returns the multiplication of this polynomial by a scalar |
Polynomial |
multiply(Field.Member f)
Returns the multiplication of this polynomial by a scalar |
Ring.Member |
multiply(Ring.Member r)
The multiplication law. |
AbelianGroup.Member |
negate()
Returns the inverse member. |
AbelianGroup.Member |
subtract(AbelianGroup.Member g)
The group composition law with inverse. |
java.lang.String |
toString()
String representation P(x) = a_k x^k +... |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RealPolynomial(double[] coeff)
public RealPolynomial(Field.Member[] f)
f - | Method Detail |
|---|
public Field.Member getCoefficient(int n)
getCoefficient in interface Polynomialk - degree
public double getCoefficientAsDouble(int n)
k - degree
public Field.Member[] getCoefficients()
getCoefficients in interface Polynomialpublic double[] getCoefficientsAsDoubles()
public int degree()
degree in interface Polynomialpublic boolean isNull()
public boolean isOne()
public AbelianGroup.Member add(AbelianGroup.Member g)
add in interface AbelianGroup.Memberg - a group memberpublic RealPolynomial differentiate()
public Polynomial divide(Field.Member f)
divide in interface Polynomialf - divisor
public RealPolynomial divide(double 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 RealPolynomial integrate()
public Polynomial multiply(Field.Member f)
multiply in interface Polynomialf -
public RealPolynomial multiply(double a)
a - factor
public Ring.Member multiply(Ring.Member r)
multiply in interface Ring.Memberr - a ring member
public AbelianGroup.Member negate()
negate in interface AbelianGroup.Memberpublic AbelianGroup.Member subtract(AbelianGroup.Member g)
subtract in interface AbelianGroup.Memberg - a group memberpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||