Ticket #8972: 8972-referee.patch

File 8972-referee.patch, 1010 bytes (added by Robert Bradshaw, 13 years ago)

Minor cosmetic changes, apply on top of previous.

  • sage/rings/power_series_ring_element.pyx

    # HG changeset patch
    # User Robert Bradshaw <robertwb@math.washington.edu>
    # Date 1274769555 25200
    # Node ID 2ef9d956a42f1bb80136513dbc8ee3210d7e0735
    # Parent  39236d7ac815d923decee458ea218e3ef8f12980
    #8972 referee patch
    
    diff -r 39236d7ac815 -r 2ef9d956a42f sage/rings/power_series_ring_element.pyx
    a b  
    12511251                else:
    12521252                    return a
    12531253
    1254         val = self.valuation();
     1254        val = self.valuation()
    12551255       
    12561256        if formal_sqrt or val % 2 == 1:
    12571257            if extend:
     
    12931293        s = a.parent()([s])
    12941294        for cur_prec in sage.misc.misc.newton_method_sizes(prec)[1:]:
    12951295            (<PowerSeries>s)._prec = cur_prec
    1296             s = half * (s + (a*s.__invert__()))#.power_series(internal=True))
     1296            s = half * (s + (a * ~s))
    12971297       
    12981298        ans = s
    12991299        if val != 0: