Opened 11 years ago

Closed 11 years ago

#3790 closed defect (fixed)

[with patch, positive review] limit gets stuck without computing anything

Reported by: mhansen Owned by: gfurnish
Priority: minor Milestone: sage-3.1
Component: calculus Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

 I noticed that for some expressions limit() gets stuck and does not
return to the sage prompt.  It does not seem to be computing anything
since the cpu usage is 0.
 For example in Sage 3.0.6 try:
vars('Ax,Bx,By')
t = -Ax*sin(sqrt(Ax^2)/2)/(sqrt(Ax^2)*sqrt(By^2 + Bx^2))
t.limit(Ax=0,dir='above')

 It just sits there.  And you need to ctrl-c to get the prompt back.
If you set t = -Ax*sin(sqrt(Ax^2)/2)/(sqrt(Ax^2)*sqrt(By^2))
Then do t.limit(Ax=0,dir='above'), you get a message asking if By is
zero or nonzero.

Attachments (1)

trac_3790.patch (2.0 KB) - added by mhansen 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by mhansen

comment:1 Changed 11 years ago by mhansen

  • Summary changed from limit gets stuck without computing anything to [with patch, needs review] limit gets stuck without computing anything

comment:2 Changed 11 years ago by mabshoff

  • Summary changed from [with patch, needs review] limit gets stuck without computing anything to [with patch, positive review] limit gets stuck without computing anything

Patch looks good to me.

Cheers,

Michael

comment:3 Changed 11 years ago by mabshoff

  • Resolution set to fixed
  • Status changed from new to closed

Merged in Sage 3.1.alpha1

Note: See TracTickets for help on using tickets.