#10682: sum fails with lower bound != 0 or 1 (upgrade maxima to 5.26)
---------------------------------------------------------+------------------
   Reporter:  fmaltey                                    |          Owner:  
burcin                    
       Type:  defect                                     |         Status:  
needs_info                
   Priority:  critical                                   |      Milestone:  
sage-5.0                  
  Component:  symbolics                                  |       Keywords:  
maxima 5.26.0 binomial sum
Work_issues:  domain issue, error handling in nintegral  |       Upstream:  N/A 
                      
   Reviewer:  Jean-Pierre Flori,                         |         Author:  
Dima Pasechnik            
     Merged:                                             |   Dependencies:      
                      
---------------------------------------------------------+------------------

Comment(by dimpase):

 Replying to [comment:70 nbruin]:
 OK, I'll update the patch as follows:
 {{{
 diff --git a/sage/calculus/calculus.py b/sage/calculus/calculus.py
 --- a/sage/calculus/calculus.py
 +++ b/sage/calculus/calculus.py
 @@ -632,7 +632,8 @@
        - ``5`` - integral is probably divergent or slowly
          convergent

 -      - ``6`` - the input is invalid
 +      - ``6`` - the input is invalid; this includes the case of
 desired_relative_error
 +        being too small to be achieved

      ALIAS: nintegrate is the same as nintegral

 @@ -641,9 +642,6 @@
      integration using the GSL C library. It is potentially much faster
      and applies to arbitrary user defined functions.

 -    Also, there are limits to the precision to which Maxima can compute
 -    the integral: here the error code "6" means "the input is invalid".
 -
      ::

          sage: f = x
 @@ -714,14 +712,14 @@
                                      limit=maximum_num_subintervals)
      except TypeError, err:
          if "ERROR" in str(err):
 -            raise ValueError, "Maxima (via quadpack) cannot compute the
 integral to that precision"
 +            raise ValueError, "Maxima (via quadpack) cannot compute the
 integral"
          else:
              raise TypeError, err

      #This is just a work around until there is a response to
      #http://www.math.utexas.edu/pipermail/maxima/2008/012975.html
      if 'quad_qags' in str(v):
 -        raise ValueError, "Maxima (via quadpack) cannot compute the
 integral to that precision"
 +        raise ValueError, "Maxima (via quadpack) cannot compute the
 integral"

      return float(v[0]), float(v[1]), Integer(v[2]), Integer(v[3])
 }}}

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