% Test function #1 for Exercise 8.8

function y = fct(x)
  y = x.^8 - 8*x.^7 + 28*x.^6 - 56*x.^5 + 70*x.^4 - 56*x.^3 +28*x.^2 - 8*x +1;