#10088: numerical_integral fails for xonstant expressions
-------------------------+--------------------------------------------------
   Reporter:  lftabera   |       Owner:  jason, jkantor    
       Type:  defect     |      Status:  new               
   Priority:  major      |   Milestone:  sage-4.6          
  Component:  numerical  |    Keywords:  numerical_integral
     Author:             |    Upstream:  N/A               
   Reviewer:             |      Merged:                    
Work_issues:             |  
-------------------------+--------------------------------------------------
 numerical_integral fails for constant expressions

 {{{
 sage: f = x
 sage: g = x-1
 sage: numerical_integral(f,-2,2)
 (0.0, 4.4389290910485955e-14)
 sage: numerical_integral(g,-2,2)
 (-4.0, 5.550866604629029e-14)
 sage: numerical_integral(f+g, -2, 2)
 (-4.0, 9.4350890128471666e-14)
 sage: numerical_integral(f-g, -2, 2)
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)

 /home/luisfe/Varios/quotes/intradia/<ipython console> in <module>()

 /opt/SAGE/sage-4.5.2/local/lib/python2.6/site-
 packages/sage/gsl/integration.so in
 sage.gsl.integration.numerical_integral (sage/gsl/integration.c:1551)()

 ValueError: Integrand has wrong number of parameters

 sage: type(f-g)
 <type 'sage.symbolic.expression.Expression'>
 sage: f-g
 1
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10088>
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