clear all clc syms y(t) dy = diff(y) deq = diff(y, 2) + dy + y == 0 soln = dsolve(deq, y(0) == 1, dy(0) == 0) y_eval = double(vpa(subs(soln, t, 4))) Notice how in the second to last line in the image, ...
Occasionally, I have octsympy run some symbolic scripts (I used to have sporadical access to Matlab Symbolic Toolbox, but not at the moment). I am quite sure this code used to work, both in Matlab and ...