Comment #7 on issue 2818 by smi...@gmail.com: factor() returns nan
http://code.google.com/p/sympy/issues/detail?id=2818

And here is a version with no denominators:

cancel(n)
-2*x**3*(-x**2 + 1)*(x**2 - 1)*(-x**3*(-x**2 + 1)*(x**2 - 1) - x**3*(x**2 - 1)** 2)*(x**4*(x**2 - 1) - x**2*(x**2 - 1) - x**2) - (-2*x**4*(x**2 - 1)**2 - x**2*(- x**2 + 1)*(-x**2*(-x**2 + 1) + x**2*(x**2 - 1)))*(x**4*(x**2 - 1)**4 - x*(-x**3*
(-x**2 + 1)*(x**2 - 1) - x**3*(x**2 - 1)**2))
cancel(n/y)
0
factor(n)
nan
simplify(n)
0
print filldedent(str(n))

-2*x**3*(-x**2 + 1)*(x**2 - 1)*(-x**3*(-x**2 + 1)*(x**2 - 1) -
x**3*(x**2 - 1)**2)*(x**4*(x**2 - 1) - x**2*(x**2 - 1) - x**2) -
(-2*x**4*(x**2 - 1)**2 - x**2*(-x**2 + 1)*(-x**2*(-x**2 + 1) +
x**2*(x**2 - 1)))*(x**4*(x**2 - 1)**4 - x*(-x**3*(-x**2 + 1)*(x**2 -
1) - x**3*(x**2 - 1)**2))


--
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