#17088: PeriodicRegion.__div__: use integer arithmetic
-------------------------------+----------------------------
   Reporter:  jdemeyer         |            Owner:
       Type:  defect           |           Status:  new
   Priority:  critical         |        Milestone:  sage-6.4
  Component:  elliptic curves  |         Keywords:
  Merged in:                   |          Authors:
  Reviewers:                   |  Report Upstream:  N/A
Work issues:                   |           Branch:
     Commit:                   |     Dependencies:
   Stopgaps:                   |
-------------------------------+----------------------------
 Replace the unreliable floating-point arithmetic in
 `PeriodicRegion.__div__` by pure integer arithmetic.

 Background:
 this is causing doctest failures in #16938 due to slightly different
 floating-point rounding. The failure is the following:
 {{{
 sage -t src/sage/schemes/elliptic_curves/period_lattice_region.pyx
 **********************************************************************
 File "src/sage/schemes/elliptic_curves/period_lattice_region.pyx", line
 395, in
 sage.schemes.elliptic_curves.period_lattice_region.PeriodicRegion.__div__
 Failed example:
     (S / 3).plot()
 Expected:
     Graphics object consisting of 109 graphics primitives
 Got:
     Graphics object consisting of 121 graphics primitives
 **********************************************************************
 }}}
 (this output of `plot()` commands was added by #16746). As you can see,
 there are more pixels in the debug version.

--
Ticket URL: <http://trac.sagemath.org/ticket/17088>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to