Changes between Initial Version and Version 2 of Ticket #13213
- Timestamp:
- 07/09/12 07:51:14 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13213
-
Property
Authors
changed from
vdelecroix
toVincent Delecroix
-
Property
Authors
changed from
-
Ticket #13213 – Description
initial v2 9 9 10 10 There is a patch for quadratic field. Another one is comming for general number fields. 11 12 Timings with the patch 13 {{{ 14 sage: K.<sqrt2> = QuadraticField(2,'sqrt2',embedding=1.4142) 15 sage: b = (5*sqrt2 + 14)/5 16 sage: a = (3*sqrt2 + 18)/7 17 sage: %timeit a < b 18 625 loops, best of 3: 6.68 µs per loop 19 }}} 20 Timings without the patch 21 {{{ 22 sage: sage: K.<sqrt2> = QuadraticField(2,'sqrt2',embedding=1.4142) 23 sage: a = (3*sqrt2 + 18)/7 24 sage: b = (5*sqrt2 + 14)/5 25 sage: %timeit a < b 26 625 loops, best of 3: 478 ns per loop 27 }}} 28 }}}