Ticket #6496: multi-poly-denom-referee.patch

File multi-poly-denom-referee.patch, 1.0 KB (added by robertwb, 12 years ago)

apply on top of other

  • sage/rings/polynomial/multi_polynomial.pyx

    # HG changeset patch
    # User Robert Bradshaw <robertwb@math.washington.edu>
    # Date 1258691286 28800
    # Node ID ad680b204a562367b766c124ba1b3ae8d42f0dd4
    # Parent  a7a180796e5cbc4e56f771e05c144dde81049b9c
    Follow-up to #6496, make denominator live in basering.
    
    diff -r a7a180796e5c -r ad680b204a56 sage/rings/polynomial/multi_polynomial.pyx
    a b  
    10931093        """
    10941094        if self.degree() == -1:
    10951095            return 1
    1096         #R was defined for univariate polynomials. Is it useless?
    1097         #R = self.base_ring()
    10981096        x = self.coefficients()
    10991097        try:
    11001098            d = x[0].denominator()
     
    11021100                d = d.lcm(y.denominator())
    11031101            return d
    11041102        except(AttributeError):
    1105             return self.parent().one_element()
     1103            return self.parent().base_ring().one_element()
    11061104
    11071105    def numerator(self):
    11081106        """