Comment #1 on issue 2472 by matt...@gmail.com: Regression in sympy/polys/tests/test_rootoftools.py
http://code.google.com/p/sympy/issues/detail?id=2472

I tested all supported Python versions on 32/64-bit and got no test failures. Can you run the following code:

In [1]: var('r')
Out[1]: r

In [2]: f = x**3 + x + 3

In [3]: g = Lambda(r, log(r*x))

In [4]: for i in xrange(1000):
   ...:     a = RootSum((x - 7)*f**3, g)
   ...:     b = log(7*x) + 3*RootSum(f, g)
   ...:     if a != b:
   ...:         break
   ...:
   ...:

In [5]: i
Out[5]: 999

You can choose a larger value than 1000 if needed (if it the loop ends before n-1, then there is a problem). You can also replace RootOf on line "a = ..." with contents of line "b = ..." (yes, the same expression twice, because before your patch I got random failures in both cases).

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to