|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.mathematics.analysis.taylor.TaylorDouble
public abstract class TaylorDouble
The abstract superclass of all TaylorDouble objects, representing a species of expressions that are automatically Taylor expandable.
| Field Summary | |
|---|---|
protected double[] |
coeffs
The Taylor coefficients of this TaylorDouble. |
protected boolean |
constant
True for TaylorDoubles that are constant in time, such as constants, parameters or a multiplication of two parameters. |
protected boolean |
independent
True for the independent variable t or another TaylorDouble with only the two first Taylor coefficients nonzero, such as w·t + c. |
protected int |
order
The current order of the expansion of this TaylorDouble. |
| Constructor Summary | |
|---|---|
TaylorDouble()
|
|
| Method Summary | |
|---|---|
protected abstract void |
calcOrder(int k)
Any TaylorDouble must implement this method for calculation of the kth Taylor coefficient. |
double |
evaluate(double h)
Evaluate at time t = t0 + h, where t0 is the expansion point; that is evaluate the Taylor expansion f (x,t) = f (t0) + f ' (t0)·h + f '' (t0) ·h2 + ... |
void |
expandToOrder(int k)
Expand this TaylorDouble variable to order k. |
protected int |
flops(int k)
Return the number of flops required to calculate the kth coefficient of this TaylorDouble. |
double |
getCoeff(int k)
Get the kth Taylor coefficient. |
int |
getOrder()
Get the order of the Taylor expansion. |
abstract void |
reset()
Any TaylorDouble must implement a method to reset, that is to drop it's order to -1 and reset any TaylorDoubles it is dependent on. |
protected void |
setToLength(int k)
Set the size of the coefficient array coeffs[] to k. |
java.lang.String |
toString()
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double[] coeffs
protected int order
protected boolean constant
protected boolean independent
| Constructor Detail |
|---|
public TaylorDouble()
| Method Detail |
|---|
public double evaluate(double h)
public void expandToOrder(int k)
protected abstract void calcOrder(int k)
protected int flops(int k)
public abstract void reset()
public double getCoeff(int k)
public int getOrder()
public java.lang.String toString()
toString in class java.lang.Objectprotected void setToLength(int k)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||