ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 19 Jan 2018 16:06:34 -0600IVP and complex solutionshttps://ask.sagemath.org/question/40702/ivp-and-complex-solutions/ f(x,y)=-(-3*y+2*y^2)
p5sol2=desolve(diff(y,x)==f(x,y),y,ics=[0,0.5])
Returns the following:
-1/3*log(2*y(x) - 3) + 1/3*log(y(x)) == x - 26714619/25510582*I - 27229598/58926009
I get the following result from Mathematica:
y[x] -> (1.5 E^(3 x))/(2. + E^(3 x))
Why is sage returning a complex solution? I am assuming it has to do with the logs and absolute values when integrating.
Any help will be appreciated. Thanks!!!AshishFri, 19 Jan 2018 16:06:34 -0600https://ask.sagemath.org/question/40702/