#13427: Numerical noise causing sage/numerical/optimize.py to fail on SPARC
---------------------------------+------------------------------------------
       Reporter:  drkirkby       |         Owner:  jason, jkantor
           Type:  defect         |        Status:  new           
       Priority:  major          |     Milestone:  sage-5.4      
      Component:  numerical      |    Resolution:                
       Keywords:  solaris, glpk  |   Work issues:                
Report Upstream:  N/A            |     Reviewers:                
        Authors:                 |     Merged in:                
   Dependencies:                 |      Stopgaps:                
---------------------------------+------------------------------------------

Comment (by drkirkby):

 There is indeed another maximum, and the function will find it if the
 range is set from 7 to 8, rather than 0 to 8.

 {{{
 sage: find_local_maximum(fast_float(8*e^ (-x)*sin(x) - 1, x), 0, 8)
 (1.5791755355586758, 0.78539816111340355)
 sage: find_local_maximum(fast_float(8*e^ (-x)*sin(x) - 1, x), 7, 8)
 (-0.9951835373923219, 7.0685835822289791)
 }}}

 So perhaps the test does need two changes.

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