#!/usr/bin/env octave function ys = euler(f,t,y,h) t0=t(1); tn=t(2); tx=t0; ys=zeros(ceil((tn-t0)/h),length(y)); ys(1,:)=y; i=1; while (tx