Changes between Initial Version and Version 2 of Ticket #13213


Ignore:
Timestamp:
07/09/12 07:51:14 (7 years ago)
Author:
vdelecroix
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13213

    • Property Authors changed from vdelecroix to Vincent Delecroix
  • Ticket #13213 – Description

    initial v2  
    99
    1010There is a patch for quadratic field. Another one is comming for general number fields.
     11
     12Timings with the patch
     13{{{
     14sage: K.<sqrt2> = QuadraticField(2,'sqrt2',embedding=1.4142)
     15sage: b = (5*sqrt2 + 14)/5
     16sage: a = (3*sqrt2 + 18)/7
     17sage: %timeit a < b
     18625 loops, best of 3: 6.68 µs per loop
     19}}}
     20Timings without the patch
     21{{{
     22sage: sage: K.<sqrt2> = QuadraticField(2,'sqrt2',embedding=1.4142)
     23sage: a = (3*sqrt2 + 18)/7
     24sage: b = (5*sqrt2 + 14)/5
     25sage: %timeit a < b
     26625 loops, best of 3: 478 ns per loop
     27}}}
     28}}}