This surprised me today:

> limit(1/x, x=0)
Infinity

I was expecting something more like this:

> limit(x/abs(x), x=0)
und

The help on Infinity wasn't illuminating:

> Infinity?
Type:          PlusInfinity
String form:   +Infinity

...and so forth. This implies to me that Infinity and +Infinity are the 
same, but Sage seems to give a different result for the one-sided limit:

> limit(1/x, x=0, dir='right')
+Infinity

Why am I getting a different answer this time? I'll grant that Sage 
eventually simplifies them to the same:

> (limit(1/x, x=0, dir='right') == limit(1/x, x=0)).full_simplify()
1
> (limit(1/x, x=0, dir='left') == limit(1/x, x=0)).full_simplify()
0

...but they print differently for some reason, and in any case I don't see 
why Sage would report a limit when the two one-sided limits disagree. The 
documentation on limit didn't help, either.

Is this a bug, or do I misunderstand something?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to