org.jscience.mathematics.analysis.taylor
Class TaylorParameter

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

public class TaylorParameter
extends TaylorDouble

Implementation of a function that is constant with respect to the independent variable t, but that will need to be varied during calculations.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jscience.mathematics.analysis.taylor.TaylorDouble
coeffs, constant, independent, order
 
Constructor Summary
TaylorParameter(double a)
          Construct new parameter of value a.
 
Method Summary
 void calcOrder(int k)
          Set kth Taylor coefficient - all except the first are zero.
 double evaluate(double t)
          Evaluation is simply a0
 void reset()
          The reset method is empty for TaylorParameter, since Taylor coefficients are unaffected by change of expansion point.
 void setValue(double a)
          Set the value of this parameter to a.
 
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

TaylorParameter

public TaylorParameter(double a)
Construct new parameter of value a.

Parameters:
a - DOCUMENT ME!
Method Detail

calcOrder

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

Specified by:
calcOrder in class TaylorDouble
Parameters:
k - DOCUMENT ME!

evaluate

public double evaluate(double t)
Evaluation is simply a0

Overrides:
evaluate in class TaylorDouble
Parameters:
t - DOCUMENT ME!
Returns:
DOCUMENT ME!

setValue

public void setValue(double a)
Set the value of this parameter to a.

Parameters:
a - DOCUMENT ME!

reset

public void reset()
The reset method is empty for TaylorParameter, since Taylor coefficients are unaffected by change of expansion point.

Specified by:
reset in class TaylorDouble