from matplotlib.pyplot import *

def f(x):
  return x**3-6*x**2+9*x+1

def graphe(start,end,steps):
  x=[start+i*steps for i in range(int((end-start)/steps)+1)]
  y=[f(j) for j in x]
  plot(x,y)
  show()