#10792: Upgrade numpy to 1.5.1
------------------------+---------------------------------------------------
   Reporter:  jason     |       Owner:  tbd       
       Type:  task      |      Status:  needs_work
   Priority:  major     |   Milestone:  sage-4.7  
  Component:  packages  |    Keywords:            
     Author:            |    Upstream:  N/A       
   Reviewer:            |      Merged:            
Work_issues:            |  
------------------------+---------------------------------------------------

Comment(by jason):

 Ethan,

 I've split the issue into two problems: the ComplexWarnings problem that I
 hopefully fixed with the patch on this ticket and the invalid division
 warning, which I've made #10821.  Can you check this code and the
 numerical differences in output?  I now get these failures:

 {{{
 % sage -t -long riemann.pyx | grep -v "Warning: invalid value encountered
 in divide"                                                     E:128
 Detected SAGE64 flag
 Building Sage on OS X in 64-bit mode
 sage -t -long "trees/sage-4.6.1/devel/sage-main/sage/calculus/riemann.pyx"
 **********************************************************************
 File "/Users/grout/sage-trees/sage-4.6.1/devel/sage-
 main/sage/calculus/riemann.pyx", line 123:
     sage: print "error =", m.inverse_riemann_map(m.riemann_map(x)) - x  #
 long time
 Expected:
     error = (-0.0001211863...+0.001606139...j)
 Got:
     error = (-0.000291742263558+0.00160874617675j)
 **********************************************************************
 File "/Users/grout/sage-trees/sage-4.6.1/devel/sage-
 main/sage/calculus/riemann.pyx", line 484:
     sage: m.riemann_map(0.25 + sqrt(-0.5))  # long time
 Expected:
     (0.137514137885...+0.876696023004...j)
 Got:
     (0.13751414123737432+0.87669602715226935j)
 **********************************************************************
 File "/Users/grout/sage-trees/sage-4.6.1/devel/sage-
 main/sage/calculus/riemann.pyx", line 486:
     sage: m.riemann_map(1.3*I)  # long time
 Expected:
     (-1.561029396...+0.989694535737...j)
 Got:
     (-1.560925774791804e-05+0.98969453688560927j)
 **********************************************************************
 File "/Users/grout/sage-trees/sage-4.6.1/devel/sage-
 main/sage/calculus/riemann.pyx", line 489:
     sage: m.riemann_map(0.4)  # long time
 Expected:
     (0.733242677182...+3.50767714...j)
 Got:
     (0.73324267718110436+3.2076771460460016e-06j)
 **********************************************************************
 File "/Users/grout/sage-trees/sage-4.6.1/devel/sage-
 main/sage/calculus/riemann.pyx", line 492:
     sage: m.riemann_map(np.complex(-3, 0.0001))  # long time
 Expected:
     (1.405757135...+1.05106...j)
 Got:
     (1.4057571374988058e-05+8.0616369487397992e-10j)
 **********************************************************************
 2 items had failures:
    1 of  15 in __main__.example_1
    4 of   9 in __main__.example_8
 ***Test Failed*** 5 failures.
 For whitespace errors, see the file
 /Users/grout/.sage//tmp/.doctest_riemann.py
          [105.0 s]

 ----------------------------------------------------------------------
 The following tests failed:


         sage -t -long "trees/sage-4.6.1/devel/sage-
 main/sage/calculus/riemann.pyx"
 Total time for all tests: 105.1 seconds

 }}}

 It looks like the errors are all slight numerical errors.  Can someone
 confirm that?

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