Manoj Kumar
unread,Mar 11, 2013, 3:49:30 AM3/11/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
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?