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

while abs(f)>1e-10 
    
  fd = 2*x-3-cos(x)/12;
  x  = x - f/fd
  f  = x^2-3*x+2-sin(x)/12 ;
  
end