Hi!
I am bothered by an error that I don't understand. I am trying to write a procedure to solve numerically a delay differential equation "step by step" (for example y'(t)=y(t-1))
here is my code
restart;
y[0]:=t->t; #my initial condition on [-1,0]
p:=dsolve({D(x)(t)=y[0](t-1), x(t0)=x0}, x(t), numeric, parameters=[t0, x0]);
p(parameters=[0,y[0](0)]);
y[1]:=t->op(2,op(2,p(t))); #y[1](t) is the value of p(t) but in a "readable" format