|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.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 Polynomial
n
- degree
public double getCoefficientAsDouble(int n)
public Field.Member[] getCoefficients()
getCoefficients
in interface Polynomial
public double[] getCoefficientsAsDoubles()
public double map(double x)
map
in interface Mapping
public int degree()
degree
in interface Polynomial
public boolean isZero()
public boolean isOne()
public RealFunction add(RealFunction g)
add
in class RealFunction
g
- a group memberpublic RealFunction differentiate()
differentiate
in class RealFunction
public Polynomial divide(Field.Member f)
divide
in interface Polynomial
f
- 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 Polynomial
f
-
public RealPolynomial multiply(double a)
a
- factor
public RealFunction multiply(RealFunction r)
multiply
in class RealFunction
public AbelianGroup.Member negate()
negate
in interface AbelianGroup.Member
negate
in class RealFunction
public RealFunction subtract(RealFunction g)
subtract
in class RealFunction
g
- a group memberpublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |