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 )
    Author:
    Heinz Kredel
    See Also:
    Serialized Form
    • 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 )