Opened 5 years ago

Last modified 18 months ago

#17878 new defect

Wrong answer for a simple limit

Reported by: vdelecroix Owned by:
Priority: critical Milestone: sage-6.6
Component: calculus Keywords: bug
Cc: kcrisman Merged in:
Authors: Reviewers:
Report Upstream: Not yet reported upstream; Will do shortly. Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by vdelecroix)

As reported in ask.sagemath.org we have

sage: f = exp(-x) / (2 + sin(x))
sage: f.limit(x=+infinity)
und

but it is clearly defined. And sympy gives the expected answer

sage: import sympy
sage: sympy.limit(f,x,+oo)
0

Change History (4)

comment:1 Changed 5 years ago by vdelecroix

  • Description modified (diff)

comment:2 Changed 5 years ago by kcrisman

  • Cc kcrisman added
  • Component changed from symbolics to calculus

comment:3 Changed 5 years ago by vdelecroix

  • Description modified (diff)

comment:4 Changed 18 months ago by zimmerma

here is another example of wrong limit (thanks Manuel Eberl, here with Sage 8.2):

sage: f=log(log(x + e^(log(x)*log(log(x)))))/log(log(log(x + e^x + log(x))))
sage: f.limit(x=+infinity)
0

The correct answer is 1. See https://sourceforge.net/p/maxima/bugs/3393/

Note: See TracTickets for help on using tickets.