org.jscience.mathematics.analysis.taylor
Class TaylorIndependant

java.lang.Object
  extended by org.jscience.mathematics.analysis.taylor.TaylorDouble
      extended by org.jscience.mathematics.analysis.taylor.TaylorIndependant
All Implemented Interfaces:
java.io.Serializable

public class TaylorIndependant
extends TaylorDouble

Implementation of a function that is equal to the independent variable t.

The expansion coefficients of y(t) = t are y0 = t0, y1 = 1 and yk = 0 otherwise.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jscience.mathematics.analysis.taylor.TaylorDouble
coeffs, constant, independent, order
 
Constructor Summary
TaylorIndependant(double t0)
          Construct new independent variable with expansion point t0.
 
Method Summary
 void calcOrder(int k)
          Set the kth coefficient - all except the two first are zero.
 double evaluate(double h)
          Evaluation is simply t0+h
 void reset()
          This method is empty; use reset(t0) instead.
 void reset(double t0)
          Shift expansion point.
 
Methods inherited from class org.jscience.mathematics.analysis.taylor.TaylorDouble
expandToOrder, flops, getCoeff, getOrder, setToLength, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaylorIndependant

public TaylorIndependant(double t0)
Construct new independent variable with expansion point t0.

Method Detail

calcOrder

public void calcOrder(int k)
Set the kth coefficient - all except the two first are zero.

Specified by:
calcOrder in class TaylorDouble

evaluate

public double evaluate(double h)
Evaluation is simply t0+h

Overrides:
evaluate in class TaylorDouble

reset

public void reset()
This method is empty; use reset(t0) instead.

Specified by:
reset in class TaylorDouble

reset

public void reset(double t0)
Shift expansion point. Remember to reset all dependent variables and functions.