This bug is in polylog eval method. It returns wrong type (builtin "int", not sympy's Integer).
Fix is very simple: https://github.com/skirpichev/omg/pull/137 On Monday, November 30, 2015 at 10:26:24 PM UTC+3, Andrey Grozin wrote: > > grozin@elrond ~ $ python > Python 3.4.3 (default, Nov 8 2015, 11:52:08) > [GCC 4.9.3] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> from sympy import * > >>> x=Symbol('x') > >>> integrate(log(x)/(1-x),(x,0,1)) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python3.4/site-packages/sympy/utilities/decorator.py", > line 35, in threaded_func > return func(expr, *args, **kwargs) > File "/usr/lib/python3.4/site-packages/sympy/integrals/integrals.py", > line 1232, in integrate > risch=risch, manual=manual) > File "/usr/lib/python3.4/site-packages/sympy/integrals/integrals.py", > line 532, in doit > function = antideriv._eval_interval(x, a, b) > File "/usr/lib/python3.4/site-packages/sympy/core/expr.py", line 745, in > _eval_interval > if B.has(S.NaN) or B.has(S.Infinity) or B.has(S.NegativeInfinity): > AttributeError: 'int' object has no attribute 'has' > >>> > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/acf7b217-5493-466c-a650-3355ef72ac98%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
