Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cancellation of two indefinite limits #16422

Open
dkrenn opened this issue Jun 1, 2014 · 4 comments
Open

cancellation of two indefinite limits #16422

dkrenn opened this issue Jun 1, 2014 · 4 comments

Comments

@dkrenn
Copy link
Contributor

dkrenn commented Jun 1, 2014

We get

sage: limit(cos(x),x=oo) - limit(sin(x),x=oo)
0

This comes from the fact that the return value of each of these limits is a symbolic variable:

sage: limit(sin(x), x=oo)
ind
sage: type(limit(sin(x), x=oo))
<type 'sage.symbolic.expression.Expression'>
sage: limit(sin(x), x=oo).variables()
(ind,)

CC: @sagetrac-jakobkroeker

Component: symbolics

Keywords: symbolic, cancellation, limit, indefinite

Stopgaps: wrongBehaviourMarker

Issue created by migration from https://trac.sagemath.org/ticket/16422

@dkrenn dkrenn added this to the sage-6.3 milestone Jun 1, 2014
@dkrenn

This comment has been minimized.

@nbruin
Copy link
Contributor

nbruin commented Jun 1, 2014

comment:2

This is an upstream problem (in maxima). It seems "ind" isn't a special symbol there either:

Maxima 5.29.1 http://maxima.sourceforge.net
using Lisp ECL 12.12.1
(%i3) limit(sin(x),x,inf)-limit(cos(x),x,inf);
(%o3)                                  0

We could intercept ind whenever it comes by (from limit) and raise an exception to limit the damage, but I imagine the bad simplifications could already happen internal to maxima.

This seems to happen with infinity as well, by the way:

(%i14) limit(1/x^2,x,0)-limit(1/x^4,x,0);
(%o14)                                 0

Sage catches those (when they happen in a way sage can see it happen), so perhaps we should recognize ind and a special value--leading to an exception if we can't do anything with it.

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 16, 2015

comment:4

Still there in 6.6.

@sagetrac-jakobkroeker
Copy link
Mannequin

sagetrac-jakobkroeker mannequin commented Mar 4, 2017

Stopgaps: wrongBehaviourMarker

@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants