It is possible, by using some magic. See for example,
syms y(t)
eqns = {diff(y(t),t) == t*sin(y(t)), y(0) == 2};
numdig = 16;
digits(numdig);
symLIST = @(varargin)feval(symengine,'DOM_LIST',varargin{:});
symRANGE = @(a,b) feval(symengine, '_range', a, b);
IVP = symLIST(eqns{:});
fields = symLIST(y(t));
IVP = feval(symengine,'numeric::ode2vectorfield', IVP, fields);
syms CK45
method = CK45;
feval(symengine, 'numeric::odesolve', IVP(1), symRANGE(IVP(2),10), IVP(3), method)
You can omit the method parameter from the call.
Best Answer