edu.jas.ps
Class TaylorFunctionAdapter<C extends RingElem<C>>

java.lang.Object
  extended by edu.jas.ps.TaylorFunctionAdapter<C>
Type Parameters:
C - ring element type
All Implemented Interfaces:
TaylorFunction<C>

public abstract class TaylorFunctionAdapter<C extends RingElem<C>>
extends java.lang.Object
implements TaylorFunction<C>

Adapter for functions capable for Taylor series expansion.

Author:
Heinz Kredel

Constructor Summary
TaylorFunctionAdapter()
           
 
Method Summary
 TaylorFunction<C> deriviative()
          Deriviative.
 TaylorFunction<C> deriviative(ExpVector i)
          Multi-partial deriviative.
 C evaluate(C a)
          Evaluate.
 C evaluate(java.util.List<C> a)
          Evaluate at a tuple of elements.
 long getFacul()
          Get the factorial coefficient.
 boolean isZERO()
          Test if this is zero.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaylorFunctionAdapter

public TaylorFunctionAdapter()
Method Detail

getFacul

public long getFacul()
Get the factorial coefficient.

Specified by:
getFacul in interface TaylorFunction<C extends RingElem<C>>
Returns:
factorial coefficient.

isZERO

public boolean isZERO()
Test if this is zero.

Specified by:
isZERO in interface TaylorFunction<C extends RingElem<C>>
Returns:
true if this is 0, else false.

deriviative

public TaylorFunction<C> deriviative()
Deriviative.

Specified by:
deriviative in interface TaylorFunction<C extends RingElem<C>>
Returns:
deriviative of this.

deriviative

public TaylorFunction<C> deriviative(ExpVector i)
Multi-partial deriviative.

Specified by:
deriviative in interface TaylorFunction<C extends RingElem<C>>
Parameters:
i - exponent vector.
Returns:
partial deriviative of this with respect to all variables.

evaluate

public C evaluate(C a)
Evaluate.

Specified by:
evaluate in interface TaylorFunction<C extends RingElem<C>>
Parameters:
a - element.
Returns:
this(a).

evaluate

public C evaluate(java.util.List<C> a)
Evaluate at a tuple of elements.

Specified by:
evaluate in interface TaylorFunction<C extends RingElem<C>>
Parameters:
a - tuple of elements.
Returns:
this(a).