I see that a test which is proving difficult to verify was deleted in
the commit that made this change:
def test_1st_homogeneous_coeff_ode2():
eq1 = f(x).diff(x) - f(x)/x+1/sin(f(x)/x)
eq2 = x**2 + f(x)**2 - 2*x*f(x)*f(x).diff(x)
eq3 = x*exp(f(x)/x) + f(x) - x*f(x).diff(x)
sol1 = Eq(f(x), x*acos(log(C1*x)))
sol2 = [Eq(f(x), sqrt(C1*x + x**2)), Eq(f(x), -sqrt(C1*x +
x**2))]
sol3 = Eq(f(x), log(log(C1/x)**(-x)))
# specific hints are applied for speed reasons
assert dsolve(eq1, f(x),
hint='1st_homogeneous_coeff_subs_dep_div_indep') == sol1
assert dsolve(eq2, f(x), hint='1st_homogeneous_coeff_best') ==
sol2
assert dsolve(eq3, f(x),
hint='1st_homogeneous_coeff_subs_dep_div_indep') == sol3
- assert checksol(eq1, f(x), sol1)
- assert checksol(eq2, f(x), sol2[0])
- assert checksol(eq2, f(x), sol2[1])
- assert checksol(eq3, f(x), sol3) <======= THIS ONE
+ assert checksol(eq1, f(x), sol1, 1)
+ assert checksol(eq2, f(x), sol2[0], 1)
+ assert checksol(eq2, f(x), sol2[1], 1)
Do you recall anything about this, Aaron? Or does anyone else see how
to verify the solution?
--
You received this message because you are subscribed to the Google Groups
"sympy" 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?hl=en.