Even I encountered this problem once. Rational(3, 2) should solve it. On Monday, March 11, 2013 1:19:30 PM UTC+5:30, Manoj Kumar wrote: > > Hello, > > Ive been trying to add this new hint called 'separable_reduced' in ode.py > > According to this, > > My equation is eq = x* df + f(x)* (1 / (x**2*f(x) - 1) > > sol = dsolve(eq, hint = 'separable_reduced) gives sol = log(x**2*f(x))/3 + > log(x**2*f(x) - 3/2)/6 == C1 + log(x) > > checkodesol(eq, sol, order=1, solve_for_func=False) also gives True. > > However when I do assert sol.lhs == log(x**2*f(x))/3 + log(x**2*f(x) - > 3/2)/6 , > It gives me an assertion error because the lhs becomes log(x**2*f(x))/3 + > log(x**2*f(x) - 1)/6 as 3/2 = 1 > > I've faced this problem before. How do I overcome this? > > > > > > >
-- You received this message because you are subscribed to the Google Groups "sympy" 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
