After reinstalling Python, the following simple code
import sympy as sm
x = sm.Symbol('x')
f = sm.Function('f')
y = sm.dsolve(sm.diff(f (x),x)-3*f(x)(1-0.5f(x)),f(x))
print(y)
gives the following output:
Eq(x + 0.333333333333333*log(1.0*f(x) - 2.0) - 0.333333333333333*log(1.0*f(x)), C1)
but before it used to give me the right answer:
f(x) == -2.0/(C1*exp(-3.0*x) - 1.0)
.
Can someone help me to fix this, please?