org.jscience.mathematics.analysis.taylor
Class TaylorConstant

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

public class TaylorConstant
extends TaylorDouble

Implementation of a function that is constant with respect to the independent variable t.

See Also:
Serialized Form

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

TaylorConstant

public TaylorConstant(double c)
Construct new constant function of value c.

Parameters:
c - 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 c0

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

reset

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

Specified by:
reset in class TaylorDouble