x=1

for n=1:10

  f  = x^2-3*x+2-sin(x)/12 ;
  fd = 2*x-3-cos(x)/12;
  x  = x - f/fd
  
end