I came across this bug(?) while trying to solve Issue 3160 , 
http://code.google.com/p/sympy/issues/detail?id=3160 . Let us take this 
sample case.

>>>from sympy import *

>>>from sympy.abc import x

>>>f = Function('f')(x)  # F is my function

>>>d = Derivative(x * f , x)  # d(x * f(x)) / dx

>>>dsolve(d , f)

which gives the output as f = c1 / x , which is completely correct.


However , if I set preprocessing as False , because by observation it is 
just a simple integration , by which we get x * f(x) = k

>>>dsolve(d , f , prep = False)

it gives the output as f = c1 , which doesn't satisfy the equation for all 
values of c1.

Is this a bug? If not , why is the user given the option to process the 
equation?

P.S : I got to know this by setting prep = False to solve the above 
mentioned issue , to solve directly integrable equations. Is this the 
correct way to start working on the issue?

   

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


Reply via email to