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

failing calculation with limit #8942

Closed
sagetrac-casamayou mannequin opened this issue May 10, 2010 · 10 comments
Closed

failing calculation with limit #8942

sagetrac-casamayou mannequin opened this issue May 10, 2010 · 10 comments

Comments

@sagetrac-casamayou
Copy link
Mannequin

sagetrac-casamayou mannequin commented May 10, 2010

In all three calculations below, the first result is false, whereas in a previous version of Sage, he returned Und what is the correct answer.

sage:f(x) = (cos(pi/4-x) - tan(x)) / (1 - sin(pi/4+x))
sage:limit(f(x), x = pi/4) 
+Infinity
sage: limit(f(x), x = pi/4, dir='plus')            
-Infinity
sage: limit(f(x), x = pi/4, dir='minus')           
+Infinity

CC: @jasongrout @sagetrac-mvngu @mwhansen

Component: calculus

Keywords: limit

Author: Karl-Dieter Crisman

Reviewer: Paul Zimmermann

Merged: sage-4.5.2.alpha0

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

@sagetrac-casamayou sagetrac-casamayou mannequin added this to the sage-4.5.2 milestone May 10, 2010
@kcrisman
Copy link
Member

comment:1

This was fixed when we improved our recognition of Maxima's unsigned infinity.

sage: sage: limit(f(x), x = pi/4, dir='minus')           
+Infinity
sage: sage: limit(f(x), x = pi/4, dir='plus')            
-Infinity
sage: sage:limit(f(x), x = pi/4) 
Infinity

So I guess this can be closed? Or should we whip up a patch to document this...?

@sagetrac-casamayou
Copy link
Mannequin Author

sagetrac-casamayou mannequin commented May 27, 2010

comment:2

Replying to @kcrisman:

This was fixed when we improved our recognition of Maxima's unsigned infinity.

sage: sage: limit(f(x), x = pi/4, dir='minus')           
+Infinity
sage: sage: limit(f(x), x = pi/4, dir='plus')            
-Infinity
sage: sage:limit(f(x), x = pi/4) 
Infinity

So I guess this can be closed? Or should we whip up a patch to document this...?

This can be closed. Thanks a lot !

@sagetrac-casamayou sagetrac-casamayou mannequin closed this as completed May 27, 2010
@kcrisman
Copy link
Member

comment:3

Thanks. One thing to point out is http://www.sagemath.org/doc/developer/trac.html#closing-tickets, so that in theory only the release manager should close a ticket. For instance, we might want to document this somewhere (which is what I was really asking about).

I will now violate that same web page by re-opening it; since it hasn't actually been merged (nothing to merge) hopefully that is ok, Minh or Mike :)

@kcrisman kcrisman reopened this May 27, 2010
@kcrisman
Copy link
Member

Attachment: trac_8942-unsigned-inf.patch.gz

Based on 4.4.2

@kcrisman
Copy link
Member

Author: Karl-Dieter Crisman

@kcrisman
Copy link
Member

comment:4

If we want more documentation that we have fixed this, here it is. Ready for review.

@zimmermann6
Copy link

comment:5

positive review (I've checked that all doctests still pass).

A small comment: maybe the documentation could say more explicitly that the output Infinity
indicates a complex infinity, whereas +Infinity means plus infinity.

By the way, there is a problem since Sage parses Infinity as +Infinity:

sage: Infinity
+Infinity
sage: Infinity == +Infinity
True
sage: a=limit(1/x, x=0)
sage: a == +Infinity
True

but this could be in a different ticket.

@zimmermann6
Copy link

comment:6

but this could be in a different ticket.

see #9480

@qed777
Copy link
Mannequin

qed777 mannequin commented Jul 20, 2010

Merged: sage-4.5.2.alpha0

@qed777
Copy link
Mannequin

qed777 mannequin commented Jul 20, 2010

Reviewer: Paul Zimmermann

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