On Sat, Mar 21, 2009 at 9:37 PM, Aaron Meurer <asmeu...@gmail.com> wrote:
>
> ---
>  sympy/solvers/solvers.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> 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]))

Thanks for the patch! Could you please also post a patch with the test
which actually triggers this problem?

Ondrej

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

Reply via email to