Ticket #4142 (closed defect: fixed)
limit bug: should be -Infinity, but gives +Infinity
| Reported by: | ddrake | Owned by: | burcin |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.3.1 |
| Component: | calculus | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Fixed upstream, in a later stable release. | Reviewers: | Dan Drake |
| Authors: | Karl-Dieter Crisman | Merged in: | sage-4.3.1.alpha0 |
| Dependencies: | Stopgaps: |
Description
As discussed in http://groups.google.com/group/sage-devel/browse_thread/thread/7afc9f414413906 , some limits are not evaluated correctly:
sage: f = sqrt(1-x^2) sage: g = diff(f, x); g -x/sqrt(1 - x^2) sage: limit(g, x=1, dir='below') +Infinity
The last command should give -Infinity, of course, since f is a semicircle. At the other endpoint, the limit is correct (+Infinity).
Attachments
Change History
comment:2 Changed 4 years ago by kcrisman
This is fixed in the latest Maxima CVS version, so whenever we upgrade again, this one will hopefully be closed.
Maxima 5.19post http://maxima.sourceforge.net using Lisp SBCL 1.0.24 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) limit(-x/sqrt(1-x^2),x,1,minus); (%o1) minf
comment:3 Changed 3 years ago by kcrisman
- Report Upstream set to N/A
This is now correct in Maxima 5.20.1, so it just needs a doctest once the new spkg is merged.
comment:4 Changed 3 years ago by kcrisman
- Status changed from new to needs_review
- Report Upstream changed from N/A to Fixed upstream, in a later stable release.
- Authors set to Karl-Dieter Crisman
Note: See
TracTickets for help on using
tickets.


As it happens, this is still a problem in Sage 4.1.x - but the problem is somewhat more subtle than just some Maxima bug, or Sage incorrectly parsing Maxima output:
BUT Maxima's infinity is not Sage's infinity; it is the complex infinity! If the answer is +infinity, Maxima would return 'inf'. I've asked the Maxima list about this, so we'll see what happens.