Ticket #12173: undo.patch

File undo.patch, 4.2 KB (added by jdemeyer, 9 years ago)

Original changes, not applied anymore

  • sage/rings/polynomial/padics/polynomial_padic_capped_relative_dense.py

    diff --git a/sage/rings/polynomial/padics/polynomial_padic_capped_relative_dense.py b/sage/rings/polynomial/padics/polynomial_padic_capped_relative_dense.py
    a b  
    294294            (2 + O(13^7))*t^3 + (13^2 + O(13^9))*t + (12 + 12*13 + 12*13^2 + 12*13^3 + 12*13^4 + 12*13^5 + 12*13^6 + O(13^7))
    295295            sage: a.list()
    296296            [12 + 12*13 + 12*13^2 + 12*13^3 + 12*13^4 + 12*13^5 + 12*13^6 + O(13^7),
    297              13^2 + O(13^9),
    298              0,
    299              2 + O(13^7)]
     297            13^2 + O(13^9),
     298            0,
     299            2 + O(13^7)]
    300300         """
    301301
    302302        if self._list is None:
     
    571571            (O(13^7))*t^6 + (O(13^7))*t^5 + (2*13 + O(13^6))*t^4 + (5*13 + O(13^6))*t^3 + (4*13 + O(13^5))*t^2 + (13 + O(13^5))*t + (O(13^7))
    572572            sage: e.list()
    573573            [O(13^7),
    574              13 + O(13^5),
    575              4*13 + O(13^5),
    576              5*13 + O(13^6),
    577              2*13 + O(13^6),
    578              O(13^7),
    579              O(13^7)]
     574            13 + O(13^5),
     575            4*13 + O(13^5),
     576            5*13 + O(13^6),
     577            2*13 + O(13^6),
     578            O(13^7),
     579            O(13^7)]
    580580        """
    581581        self._normalize()
    582582        right._normalize()
  • sage/rings/polynomial/polynomial_integer_dense_flint.pyx

    diff --git a/sage/rings/polynomial/polynomial_integer_dense_flint.pyx b/sage/rings/polynomial/polynomial_integer_dense_flint.pyx
    a b  
    260260
    261261    def __call__(self, *x, **kwds):
    262262        """
    263         Calls this polynomial with the given parameters, which can be 
    264         interpreted as polynomial composition or evaluation by this 
     263        Calls this polynomial with the given parameters, which can be
     264        interpreted as polynomial composition or evaluation by this
    265265        method.
    266266
    267         If the argument is not simply an integer (``int``, ``long`` or 
    268         ``Integer``) or a polynomial (of the same type as ``self``), 
    269         the call is passed on to the generic implementation in the 
     267        If the argument is not simply an integer (``int``, ``long`` or
     268        ``Integer``) or a polynomial (of the same type as ``self``),
     269        the call is passed on to the generic implementation in the
    270270        ``Polynomial`` class.
    271271
    272272        EXAMPLES:
    273273
    274274        The first example illustrates polynomial composition::
    275        
     275
    276276            sage: R.<t> = ZZ[]
    277277            sage: f = t^2 - 1
    278278            sage: g = t + 1
    279279            sage: f(g)          # indirect doctest
    280280            t^2 + 2*t
    281                
    282         Now we illustrate how a polynomial can be evaluated at an 
     281
     282        Now we illustrate how a polynomial can be evaluated at an
    283283        integer::
    284        
     284
    285285            sage: f(2)          # indirect doctest
    286286            3
    287287        """
     
    291291        cdef unsigned long limbs
    292292        cdef fmpz_t a_fmpz
    293293        cdef fmpz_t z_fmpz
    294        
    295         if len(x) == 1: 
     294
     295        if len(x) == 1:
    296296            x0 = x[0]
    297297            if isinstance(x, Polynomial_integer_dense_flint):
    298298                f = self._new()
  • sage/libs/flint/fmpq_poly.pxd

    diff --git a/sage/libs/flint/fmpq_poly.pxd b/sage/libs/flint/fmpq_poly.pxd
    a b  
    9999    void fmpq_poly_from_string(fmpq_poly_t, char *)
    100100    char * fmpq_poly_to_string(fmpq_poly_t, char *)
    101101    char * fmpq_poly_to_string_pretty(fmpq_poly_t, char *)
     102
  • sage/modular/modform/eis_series.py

    diff --git a/sage/modular/modform/eis_series.py b/sage/modular/modform/eis_series.py
    a b  
    162162        # This used to work with check=False, but that can only be regarded as
    163163        # an improbable lucky miracle. Enabling checking is a noticeable speed
    164164        # regression; the morally right fix would be to expose FLINT's
    165         # fmpz_poly_to_nmod_poly command (at least for word-sized N).
     165        # fmpz_poly_to_zmod_poly command (at least for word-sized N).
    166166        if a0fac is not None:
    167167            return a0fac*R(eisenstein_series_poly(k, prec).list(), prec=prec, check=True)
    168168        else: