#2697: [with patch, needs work] allow integration without explicit variable
declaration
-------------------------+--------------------------------------------------
 Reporter:  was          |        Owner:  kcrisman
     Type:  enhancement  |       Status:  new     
 Priority:  major        |    Milestone:  sage-3.3
Component:  calculus     |   Resolution:          
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by kcrisman):

 Replying to [comment:19 kcrisman]:
 > Replying to [comment:18 mabshoff]:
 > > trac_2697.patch causes a doctest failure:
 >

 For reference (mainly to myself not to forget in morning) - fix is to
 replace lines 5806 to 5812
 {{{
                 elif b is None and a is not None:
                     # two arguments, must be endpoints
                     a, b = x, a
                     x = self.default_variable()

                 if not isinstance(x, SymbolicVariable):
                     x = var(repr(x))
 }}}
 with
 {{{
                 elif b is None and a is not None:
                     # two arguments, must be endpoints
                     a, b = x, a
                     x = None

                 if x is None:
                     x = self.default_variable()

                 elif not isinstance(x, SymbolicVariable):
                     x = var(repr(x))
 }}}
 as robertwb did in the first part of this. Never occurred to me someone
 might actually ''intentionally'' pass None for the variable...

 Also need to add a doctest, and perhaps a comment that Maxima interprets
 variable=None as intending for integration to be "d1" or something like
 that, while Sage usually looks for whatever variable makes sense. E.g. the
 surprising last line below:
 {{{
 sage: j(x)=x^2
 sage: integral(j,None,0,1)
 1/3
 sage: j._maxima_().integrate(None,0,1)
 x^2
 sage: j._maxima_().integrate(None,0,2)
 2*x^2
 }}}
 Does anyone know if that is a feature or a bug in Maxima?  Either seems
 plausible, though I would think maybe feature.

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