Package edu.jas.ufd

Class PartialFraction<C extends GcdRingElem<C>>

  • Type Parameters:
    C - coefficient type
    All Implemented Interfaces:
    java.io.Serializable

    public class PartialFraction<C extends GcdRingElem<C>>
    extends java.lang.Object
    implements java.io.Serializable
    Container for the partial fraction decomposition of a squarefree denominator. num/den = sum( a_i / d_i )
    See Also:
    Serialized Form
    • Field Detail

      • logger

        private static final org.apache.logging.log4j.Logger logger
      • num

        public final GenPolynomial<C extends GcdRingElem<C>> num
        Original numerator polynomial coefficients from C and deg(num) < deg(den).
      • den

        public final GenPolynomial<C extends GcdRingElem<C>> den
        Original (irreducible) denominator polynomial coefficients from C.
      • cfactors

        public final java.util.List<C extends GcdRingElem<C>> cfactors
        List of numbers from C.
      • cdenom

        public final java.util.List<GenPolynomial<C extends GcdRingElem<C>>> cdenom
        List of linear factors of the denominator with coefficients from C.
      • afactors

        public final java.util.List<AlgebraicNumber<C extends GcdRingElem<C>>> afactors
        List of algebraic numbers of an algebraic field extension over C.
    • Constructor Detail

      • PartialFraction

        public PartialFraction​(GenPolynomial<C> n,
                               GenPolynomial<C> d,
                               java.util.List<C> cf,
                               java.util.List<GenPolynomial<C>> cd,
                               java.util.List<AlgebraicNumber<C>> af,
                               java.util.List<GenPolynomial<AlgebraicNumber<C>>> ad)
        Constructor.
        Parameters:
        n - numerator GenPolynomial over C.
        d - irreducible denominator GenPolynomial over C.
        cf - list of elements a_i.
        cd - list of linear factors d_i of d.
        af - list of algebraic elements a_i.
        ad - list of linear (irreducible) factors d_i of d with algebraic coefficients. n/d = sum( a_i / d_i )
    • Method Detail

      • toString

        public java.lang.String toString()
        Get the String representation.
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • toScript

        public java.lang.String toScript()
        Get a scripting compatible string representation.
        Returns:
        script compatible representation for this container.
        See Also:
        ElemFactory.toScript()
      • hashCode

        public int hashCode()
        Hash code for this Factors.
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • equals

        public boolean equals​(java.lang.Object B)
        Comparison with any other object.
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • isPartialFraction

        public boolean isPartialFraction()
        Test if correct partial fraction. num/den = sum( a_i / d_i )