Comment #2 on issue 2061 by smichr: sqrt(-1.0*x) gives infinite recursion
http://code.google.com/p/sympy/issues/detail?id=2061

Maybe overkill. If all tests pass with just treating leading Rationals rather than Numbers then perhaps that's enough of a change. The only nuance is that whereas -pi*x has -1 as args[0], -3.0*x has -3.0 as args[0], but that is easy to handle so both give -1 as the coefficient for as_coeff_terms.

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

Reply via email to