Package edu.jas.ps
Class TaylorFunctionAdapter<C extends RingElem<C>>
- java.lang.Object
-
- 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
Constructors Constructor Description TaylorFunctionAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaylorFunction<C>derivative()Derivative.TaylorFunction<C>derivative(ExpVector i)Multi-partial derivative.Cevaluate(C a)Evaluate.Cevaluate(java.util.List<C> a)Evaluate at a tuple of elements.longgetFacul()Get the factorial coefficient.booleanisZERO()Test if this is zero.
-
-
-
Constructor Detail
-
TaylorFunctionAdapter
public TaylorFunctionAdapter()
-
-
Method Detail
-
getFacul
public long getFacul()
Get the factorial coefficient.- Specified by:
getFaculin interfaceTaylorFunction<C extends RingElem<C>>- Returns:
- factorial coefficient.
-
isZERO
public boolean isZERO()
Test if this is zero.- Specified by:
isZEROin interfaceTaylorFunction<C extends RingElem<C>>- Returns:
- true if this is 0, else false.
-
derivative
public TaylorFunction<C> derivative()
Derivative.- Specified by:
derivativein interfaceTaylorFunction<C extends RingElem<C>>- Returns:
- derivative of this.
-
derivative
public TaylorFunction<C> derivative(ExpVector i)
Multi-partial derivative.- Specified by:
derivativein interfaceTaylorFunction<C extends RingElem<C>>- Parameters:
i- exponent vector.- Returns:
- partial derivative of this with respect to all variables.
-
evaluate
public C evaluate(C a)
Evaluate.- Specified by:
evaluatein interfaceTaylorFunction<C extends RingElem<C>>- Parameters:
a- element.- Returns:
- this(a).
-
-