
from matplotlib.pyplot import *
def f(x):
return ...
def Euler(fonctionf, x0, y0, xf, n):
x = x0
y = y0
X = [x]
Y = [y]
h = (xf-x0)/n
for i in range(n):
x = x + h
y = ...
X.append(x)
Y.append(y)
plot(X, Y, 'ro')
grid()
show()
Nos manuels sont collaboratifs, n'hésitez pas à nous en faire part.
j'ai une idée !
Oups, une coquille