#17088: PeriodicRegion.__div__: use integer arithmetic
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  defect             |       Status:  new
       Priority:  critical           |    Milestone:  sage-6.4
      Component:  elliptic curves    |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/ticket/17088            |  15b7588e82c7d67bbbab14fec4c14c862bcc4c1f
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 Replying to [comment:7 cremona]:
 > At the moment I cannot see how the new code manages to do in one line
 what the old code took 4 lines to do, but Jeroen is very clever so I will
 look again.
 Part of the problem with the old code is that it's not clear what it is
 supposed to do.

 Anyway, I claim the following: if you assume that all the floating point
 operations are exact, the 4 lines all do exactly the same so they can
 easily be replaced by 1 line. I guess the addition of the 3 extra lines
 was simply to hide floating-point rounding errors.

--
Ticket URL: <http://trac.sagemath.org/ticket/17088#comment:8>
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