Comment #3 on issue 2814 by asmeu...@gmail.com: ValueError: can't raise
polynomial to a negative power with solve()
http://code.google.com/p/sympy/issues/detail?id=2814
The expression from comment 1 now gives a recursion error, and the one from
comment 1 works.
But the one from issue 2831 still gives the problem. The problem is in
cancel().
Another expression that gives the problem, reported to me on IRC is
a = S("((-2*tanh(x - 3.0)**2 + 2)*(-tanh(x - 3.0)**2 + 1)*tanh(x +
3.0)**2/2 + (-2*tanh(x - 3.0)**2 + 2)*(-2*tanh(x + 3.0)**2 + 2)*tanh(x -
3.0)*tanh(x + 3.0) - (-2*tanh(x - 3.0)**2 + 2)*tanh(x - 3.0)**2*tanh(x +
3.0)**2 + (-2*tanh(x + 3.0)**2 + 2)*(-tanh(x + 3.0)**2 + 1)*tanh(x -
3.0)**2/2 - (-2*tanh(x + 3.0)**2 + 2)*tanh(x - 3.0)**2*tanh(x +
3.0)**2)/(2*sqrt(tanh(x - 3.0)**2*tanh(x + 3.0)**2 + 0.0001)) +
(-(-2*tanh(x - 3.0)**2 + 2)*tanh(x - 3.0)*tanh(x + 3.0)**2/2 - (-2*tanh(x +
3.0)**2 + 2)*tanh(x - 3.0)**2*tanh(x + 3.0)/2)*((-2*tanh(x - 3.0)**2 +
2)*tanh(x - 3.0)*tanh(x + 3.0)**2/2 + (-2*tanh(x + 3.0)**2 + 2)*tanh(x -
3.0)**2*tanh(x + 3.0)/2)/(2*(tanh(x - 3.0)**2*tanh(x + 3.0)**2 +
0.0001)**(3/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.