-- Euler routine which solves simultaneous differential equations. -- Results appear at very bottom of this Pad -- by Anthony Egan B.S. -- SD School of Mines ChE -- afe8607@silver.sdsmt.edu Euler(x,y)[i] = y[i] + dxx * ydot(x,y)[i] iters:=100:; -- the number of iterations ny = 3 -- the number of equations --input an array of ny differential equations ydot(x,y)={ y[1], y[1]-y[2], x^2-x } ------ zeros2[i,j] = 0 dim[ny,iters] xx:=0[:iters]: y:= zeros2: --input initial conditions of the dependent variables y[1,1]:=1: y[2,1]:=4: y[3,1]:=1: --input the initial and final values for independent variable x xinitial:=2: xfinal:=6: --Begin Program dxx:=(xfinal-xinitial)/iters:; dxx:0.040 xx[1]:=xinitial: i:=1: ( k:=1, (y[k,i+1]:= Euler(xx[i],y)[k,i],k:=k+1) while k<=ny, xx[i+1]:=xx[i]+dxx,i:=i+1) while i