Set svn:eol-style to native
[scilab.git] / scilab / modules / differential_equations / tests / unit_tests / ode.tst
1  // to check that ode works
2  // ---------- Simple one dimension ODE (Scilab function external)
3  // dy/dt=y^2-y sin(t)+cos(t), y(0)=0
4  function ydot=f(t,y),ydot=y^2-y*sin(t)+cos(t),endfunction
5  y0=0;t0=0;t=0:0.1:%pi;
6  y=ode(y0,t0,t,f);
7  if size(y) <> [1 32] then pause,end