Package edu.jas.ps

Class PolynomialTaylorFunction<C extends RingElem<C>>

  • Type Parameters:
    C - ring element type
    All Implemented Interfaces:
    TaylorFunction<C>

    public class PolynomialTaylorFunction<C extends RingElem<C>>
    extends java.lang.Object
    implements TaylorFunction<C>
    Polynomial functions capable for Taylor series expansion.
    • Constructor Detail

      • PolynomialTaylorFunction

        public PolynomialTaylorFunction​(GenPolynomial<C> p)
      • PolynomialTaylorFunction

        public PolynomialTaylorFunction​(GenPolynomial<C> p,
                                        long f)
    • Method Detail

      • toString

        public java.lang.String toString()
        To String.
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representation of this.
      • 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.
      • 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).