Created by manuel-eleve-tle-specialite-indice2020
Created on April 04, 2020
253 Bytes
from math import exp def fon(x): return((x+1)*exp(x)) def euler(): x=0;Lx=[x] y=0.1;Ly=[y] h=0.1 for i in range(1,11): y=y+h*fon(x) x=x+h Lx.append(x) Ly.append(y) return(Lx,Ly)