#6816: sage/maxima hang when doing an indefinite integral
----------------------+-----------------------------------------------------
 Reporter:  was       |       Owner:  burcin    
     Type:  defect    |      Status:  new       
 Priority:  major     |   Milestone:  sage-4.1.2
Component:  calculus  |    Keywords:            
 Reviewer:            |      Author:            
   Merged:            |  
----------------------+-----------------------------------------------------
 Integration sometimes hangs in sage-4.1.1.

 {{{
 flat:~ wstein$ sage
 ----------------------------------------------------------------------
 | Sage Version 4.1.1, Release Date: 2009-08-14                       |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 sage: var('t,theta')
 (t, theta)
 sage: integrate(t * cos(-theta*t), (t,-oo,oo))
 [.. and it hangs forever ..]
 }}}

 In fact, in Maxima what is happening is the following:
 {{{
 (%i6) integrate(t*cos(-theta*t),t,-inf,inf);
 Is  theta  positive, negative, or zero?

 positive       <--- i type this.

 ;
 (%o6)                                  0
 (%i7)
 }}}

 For some reason the question "Is  theta  positive, negative, or zero?" is
 not getting seen by pexpect as it should.  Argh!

 This works in Maxima:
 {{{
 (%i1) assume(theta>0);
 (%o1)                             [theta > 0]
 (%i2) integrate(t*cos(-theta*t),t,-inf,inf);
 (%o2)                                  0
 }}}

 The same doesn't work in Sage though, which is very weird:
 {{{
 sage: var('t,theta')
 (t, theta)
 sage: assume(theta>0)
 sage: integrate(t * cos(-theta*t), (t,-oo,oo))
 }}}

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