Created by jlevon
Created on April 10, 2020
263 Bytes
from math import * from matplotlib.pyplot import * def fonction(): def f(x): return x**3-6*x**2+9*x+1 start=-0.5 end=4.5 steps=0.1 x=[start+i*steps for i in range(int((end-start)/steps)+1)] y=[f(j) for j in x] plot(x,y) show()