|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectJSci.maths.analysis.RealFunction
JSci.maths.polynomials.RealPolynomial
A Polynomial as a Ring.Member over a real Field
| Constructor Summary | |
RealPolynomial(double[] coeff)
Creates a new instance of RealPolynomial |
|
RealPolynomial(Field.Member[] f)
Creates a new RealPolynomial object. |
|
| Method Summary | |
RealFunction |
add(RealFunction g)
The group composition law. |
int |
degree()
The degree |
RealFunction |
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)
Returns true if this polynomial is equal to another. |
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 |
isOne()
Returns true if this polynomial is equal to one. |
boolean |
isZero()
Returns true if this polynomial is equal to zero. |
double |
map(double x)
Evaluates this polynomial. |
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 |
RealFunction |
multiply(RealFunction r)
The multiplication law. |
AbelianGroup.Member |
negate()
Returns the inverse member. |
RealFunction |
subtract(RealFunction g)
The group composition law with inverse. |
java.lang.String |
toString()
String representation P(x) = a_k x^k +... |
| Methods inherited from class JSci.maths.analysis.RealFunction |
add, compose, multiply, subtract, taylorExpand, tensor |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface JSci.maths.fields.Ring.Member |
multiply |
| Methods inherited from interface JSci.maths.groups.AbelianGroup.Member |
add, subtract |
| Constructor Detail |
public RealPolynomial(double[] coeff)
public RealPolynomial(Field.Member[] f)
f - | Method Detail |
public Field.Member getCoefficient(int n)
getCoefficient in interface Polynomialn - degree
public double getCoefficientAsDouble(int n)
public Field.Member[] getCoefficients()
getCoefficients in interface Polynomialpublic double[] getCoefficientsAsDoubles()
public double map(double x)
map in interface Mappingpublic int degree()
degree in interface Polynomialpublic boolean isZero()
public boolean isOne()
public RealFunction add(RealFunction g)
add in class RealFunctiong - a group memberpublic RealFunction differentiate()
differentiate in class RealFunctionpublic Polynomial divide(Field.Member f)
divide in interface Polynomialf - divisor
public RealPolynomial divide(double a)
a - divisor
public boolean equals(java.lang.Object o)
o - the other polynomial
public int hashCode()
public RealPolynomial integrate()
public Polynomial multiply(Field.Member f)
multiply in interface Polynomialf -
public RealPolynomial multiply(double a)
a - factor
public RealFunction multiply(RealFunction r)
multiply in class RealFunctionpublic AbelianGroup.Member negate()
negate in interface AbelianGroup.Membernegate in class RealFunctionpublic RealFunction subtract(RealFunction g)
subtract in class RealFunctiong - a group memberpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||