#1234: [with patch; needs review] analytic_rank crashes
--------------------------------+-------------------------------------------
 Reporter:  zimmerma            |        Owner:  was       
     Type:  defect              |       Status:  new       
 Priority:  minor               |    Milestone:  sage-3.4.1
Component:  algebraic geometry  |   Resolution:            
 Keywords:                      |  
--------------------------------+-------------------------------------------
Changes (by was):

  * summary:  analytic_rank crashes => [with patch; needs review]
              analytic_rank crashes

Comment:

 The attached patch cleans up the exceptions raised, as requested.  Also,
 in the (default) case where Cremona's gp script is used, the precision is
 automatically doubled until it doesn't fail.  I also start the precision
 at 16 rather than the default, since it will get automatically double if
 necessary, and it's about 3 times faster usually by using this smaller
 precision to start:

 {{{
 BEFORE:
 sage: E = EllipticCurve('5077a')
 sage: time E.analytic_rank()
 CPU times: user 0.01 s, sys: 0.01 s, total: 0.02 s
 Wall time: 0.21 s


 AFTER:
 sage: E = EllipticCurve('5077a')
 sage: time E.analytic_rank()
 CPU times: user 0.02 s, sys: 0.00 s, total: 0.02 s
 Wall time: 0.06 s


 and another

 BEFORE:
 sage: time elliptic_curves.rank(4)[0].analytic_rank()
 CPU times: user 0.01 s, sys: 0.00 s, total: 0.01 s
 Wall time: 0.50 s
 4

 AFTER:
 sage: time elliptic_curves.rank(4)[0].analytic_rank()
 CPU times: user 0.01 s, sys: 0.00 s, total: 0.01 s
 Wall time: 0.33 s
 4
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/1234#comment:8>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to