org.jscience.mathematics.analysis.taylor
Class TaylorAdd

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

public class TaylorAdd
extends TaylorBinary

Implementation of Taylor expandable addition of two TaylorDoubles.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jscience.mathematics.analysis.taylor.TaylorBinary
leftOperand, rightOperand
 
Fields inherited from class org.jscience.mathematics.analysis.taylor.TaylorDouble
coeffs, constant, independent, order
 
Constructor Summary
TaylorAdd(TaylorDouble a, TaylorDouble b)
          Construct new addition a+b
 
Method Summary
 void calcOrder(int k)
          Increase the order of this Taylor expansion from k-1 to k.
 int flops(int k)
          Return the number of flops required to calculate the kth coefficient of this TaylorDouble.
 
Methods inherited from class org.jscience.mathematics.analysis.taylor.TaylorBinary
reset
 
Methods inherited from class org.jscience.mathematics.analysis.taylor.TaylorDouble
evaluate, expandToOrder, getCoeff, getOrder, setToLength, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaylorAdd

public TaylorAdd(TaylorDouble a,
                 TaylorDouble b)
Construct new addition a+b

Method Detail

calcOrder

public void calcOrder(int k)
Increase the order of this Taylor expansion from k-1 to k.

Specified by:
calcOrder in class TaylorDouble

flops

public int flops(int k)
Return the number of flops required to calculate the kth coefficient of this TaylorDouble.

Notice that flops changes the current order, so calcOrder and flops should be separated by a call to reset.

Overrides:
flops in class TaylorDouble