18.03.2011 13:23, Aaron S. Meurer пишет:
Of course the limit exists from either direction, but I think his point is that it doesn't
exist in the normal sense (from any direction). The real definition of a limit says that
|x|< δ, i.e., -δ< x< δ, implies |f(x) - L|< ε.
Actually, SymPy computes limits from a single direction (from the right by
default). I think there was an issue once to implement limit from both
directions (it would basically check '+' and '-' and return the result only if
they matched), but I can't find it now.
Aaron Meurer
As I understand smichr/2084 is merged with master already?
So in master branch it is ok now:
In [2]: limit(abs(x)/x, x, 0, dir="+")
Out[2]: 1
In [3]: limit(abs(x)/x, x, 0, dir="-")
Out[3]: -1
--
Alexey U.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.