Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3845 by [email protected]: dsolve gives different answers
http://code.google.com/p/sympy/issues/detail?id=3845
in PR 1964 I worked around different forms of the solution of an ode that
are being returned. I didn't track down the source of the variability.
eq2 = (2*x*f(x) + 1)/f(x) + (f(x) - x)/f(x)**2*f(x).diff(x)
sol2 = Eq(f(x), C1*exp(-x**2 + LambertW(C2*x*exp(x**2))))
sol2b = Eq(log(f(x)) + x/f(x) + x**2, C1)
sol2c = Eq(f(x), exp(C1 - x**2 + LambertW(C2*x*exp(x**2))))
# XXX why is there more than one form coming back from this?
# sol2 comes back with PYTHONHASHSEED=3016992991
# sol2c comes back with PYTHONHASHSEED=7938055
assert dsolve(eq2, f(x), hint='1st_exact') in [sol2, sol2b, sol2c]
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.