#16308: Improve sums of squares
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.3
      Component:  number theory      |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/ticket/16308            |  6b94a6576031e6e341143a4fc1fd83263a800ed9
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 It is embarrassing to say so, but for many examples, the old GAP code is
 actually faster. The reason seems to be that GAP beats PARI on factoring
 small numbers (which is a big surprise to me!). But GAP doesn't support
 large numbers:
 {{{
 sage: two_squares(3^100+1)
 RuntimeError: Gap produced error output
 Error, sorry,  cannot factor [ 1109667565348268894775749972955601 ]
 type 'return;' to try again with a larger number of trials in
 FactorsRho (or use option 'RhoTrials')


    executing TwoSquares(515377520732011331036461129765621272702107522002);

 }}}

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