I have the following ODE

    z'' = 1 - z²

That has as solutions z=tanh(C + t) and z=coth(C + t), depending on the 
initial condition being greater or less than 1. When I use dsolve I get the 
latter


from sympy import *
init_session()
ode = Eq(f(t).diff(t), 1 - f(t)**2)
sol = dsolve(ode, f(t))

And sol is

                   -1      
f(t) = ────────────  ,
                tanh(C₁ - t)

That is equivalent to coth(C + t).

Is there any reason for SymPy to give this answer and not the other or is 
this a bug?



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/0df6f8fe-e4c3-4693-8f81-1d6dd3e27ec8n%40googlegroups.com.

Reply via email to