Loading

   

Demonstration of class ODESolver usage: A linear ODE given by numerical data

We present the same problem as the previous example but the differential equation is given as linear one by its coefficients. We consider the linear differential equation
 c1y'(t) + c0y(t) = f(t)
We test the code with the data:
 f(t)=2*exp(t)-1, c0=c1=1, y(0)=0.
With these data we obtain the solution y(t)=exp(t)-1.