org.jscience.mathematics.analysis.taylor
Class TaylorCos

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

public class TaylorCos
extends TaylorUnary

Implementation of Taylor expandable cosine of a TaylorDouble.

See Also:
Serialized Form

Field Summary
 TaylorSin sin
          DOCUMENT ME!
 
Fields inherited from class org.jscience.mathematics.analysis.taylor.TaylorUnary
operand
 
Fields inherited from class org.jscience.mathematics.analysis.taylor.TaylorDouble
coeffs, constant, independent, order
 
Constructor Summary
TaylorCos(TaylorDouble x)
          Construct new cosine cos(x).
TaylorCos(TaylorDouble x, TaylorSin sin)
          Construct new cosine cos(x), with corresponding sine sin.
 
Method Summary
 void calcOrder(int k)
          Increase the order of this Taylor expansion from k-1 to k.
 int flops(int k)
          Returns the number of flops required to calculate the kth coefficient of this TaylorDouble.
 
Methods inherited from class org.jscience.mathematics.analysis.taylor.TaylorUnary
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
 

Field Detail

sin

public TaylorSin sin
DOCUMENT ME!

Constructor Detail

TaylorCos

public TaylorCos(TaylorDouble x)
Construct new cosine cos(x).


TaylorCos

public TaylorCos(TaylorDouble x,
                 TaylorSin sin)
Construct new cosine cos(x), with corresponding sine sin.

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)
Returns 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