Changes between Initial Version and Version 1 of Ticket #10596


Ignore:
Timestamp:
01/12/11 03:33:46 (10 years ago)
Author:
spancratz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10596 – Description

    initial v1  
    1 Generic code clean-up such as line breaks, empty lines etc
     1Generic code clean-up such as line breaks, empty lines, use of GMP functions etc
    22
    33``n.digits()``
     
    36361
    3737}}}
     38
     39Before:
     40{{{
     41sage: x = factorial(2**14)
     42sage: timeit('y = odd_part(x)')
     43625 loops, best of 3: 10.6 µs per loop
     44}}}
     45{{{
     46sage: odd_part(0)
     47---------------------------------------------------------------------------
     48...
     49TypeError: unsupported operands for >>: 0, +Infinity
     50}}}
     51After:
     52{{{
     53sage: x = factorial(2**14)
     54sage: timeit('y = x.odd_part()')
     55625 loops, best of 3: 4.52 µs per loop
     56}}}
     57{{{
     58sage: ZZ(0).odd_part()
     590
     60}}}