ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 14 Oct 2018 16:20:07 -0500desolve initial condition involving e gives strange answerhttp://ask.sagemath.org/question/43946/desolve-initial-condition-involving-e-gives-strange-answer/I'm trying to do some basic differential equations in Sage. When I run the following:
var('t')
y = function('y')(t)
de1 = t^3*diff(y, t) + 4*t^2*y == e^(t^2)
desolve(de1, y, ics = [1,e])
The output is
1/2*(e^(t^2) + y(t))/t^4
My expectation is that there shouldn't by any y(t) term in the output. If I make a seemingly meaningless tweak to my initial conditions:
desolve(de1, y, ics = [1,e*1])
I get the expected output of
1/2*(e + e^(t^2))/t^4
If I change the initial conditions to [1, e/2], I again get the output I expect. I haven't been able to reproduce this issue with any other example. Maybe the issue just comes in converting Sage's version of e into Maxima? Does anyone know what is going on here?PWSun, 14 Oct 2018 16:20:07 -0500http://ask.sagemath.org/question/43946/