c9zoom.py

Created by manuel-eleve-tle-specialite-indice2020

Created on April 04, 2020

228 Bytes


def fon(x):
    return(1/(x**2+1))

def eul(n):
    x=0;Lx=[0]
    y=0;Ly=[0]
    h=1/n
    for i in range(1,n+1):
        y=y+h*fon(x)
        x=x+h
        Lx.append(x)
        Ly.append(y)
    return(Lx,Ly)