Python sympy dsolve error
<p>After reinstalling Python, the following simple code</p>

<pre><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)
</code></pre>

<p>gives the following output:</p>

<pre><code>Eq(x + 0.333333333333333*log(1.0*f(x) - 2.0) - 0.333333333333333*log(1.0*f(x)), C1)
</code></pre>

<p>but before it used to give me the right answer:
<code>f(x) == -2.0/(C1*exp(-3.0*x) - 1.0)</code>.</p>

<p>Can someone help me to fix this, please?</p>

<p>First of all I am sorry about the syntax and editing mistakes in the first post.
Actually, right now I am running exactly the same code in two computers, one with Anaconda for Windows other with Spyder for Ubuntu, both have Python 2.7, and got two different answers. The code is:</p>

<p>import sympy as sm</p>

<p>x = sm.Symbol('x')
f = sm.Function('f')(x)</p>

<p>y=sm.dsolve(sm.diff(f,x)-3*f*(1-0.5*f),f)
print(y)</p>

<p>In the Ubuntu version I obtain the explicit solution 
f(x) == -2.0/(C1*exp(-3.0*x) - 1.0)
While in the windows machine I obtain the implicit solution
Eq(x + 0.3333333333333*log(1.0*f(x) - 2.0) - 0.333333333333*log(1.0*f(x)), C1)</p>

python sympy dsolve