Why not fix the cause, instead of hiding the problem: diff --git a/sympy/solvers/solvers.py b/sympy/solvers/solvers.py index 60a1ef5..6d97225 100644 --- a/sympy/solvers/solvers.py +++ b/sympy/solvers/solvers.py @@ -584,7 +584,7 @@ def solve_ODE_first_order(eq, f): n = Wild('n', exclude=[f(x)])
r = eq.match(a*diff(f(x),x) + b*f(x) + c*f(x)**n) - if r: + if r and r[n] != 1: t = C.exp((1-r[n])*integrate(r[b]/r[a],x)) tt = (r[n]-1)*integrate(t*r[c]/r[a],x) return ((tt + Symbol("C1"))/t)**(1/(1-r[n])) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to this group, send email to sympy-patches@googlegroups.com To unsubscribe from this group, send email to sympy-patches+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy-patches?hl=en -~----------~----~----~----~------~----~------~--~---