Ah, so it seems that these incorrect limit heuristics have still not
been completely abolished from the code base. I would recommend just
using gruntz() for now. limit() is not that much smarter, but it does
have a bad tendency to give wrong answers when gruntz() works just
fine.

Aaron Meurer

On Mon, Feb 17, 2014 at 1:29 PM, Christophe Bal <[email protected]> wrote:
> Thanks for this.
>
>
> 2014-02-17 19:21 GMT+01:00 Avichal Dayal <[email protected]>:
>
>> However gruntz gives the correct result:-
>> gruntz((x*exp(x)) / (exp(x)-1), x, -oo) gives 0
>>
>> The part of code that is going wrong is already labeled as XXX: todo
>> More specifically the following:-
>> if abs(z0) is S.Infinity:
>>             # XXX todo: this should probably be stated in the
>>             # negative -- i.e. to exclude expressions that should
>>             # not be handled this way but I'm not sure what that
>>             # condition is; when ok is True it means that the leading
>>             # term approach is going to succeed (hopefully)
>>
>> It should exclude some expressions and I guess this is one of them.
>> I'll try to understand and fix it.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sympy" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/sympy.
>> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to