fork download
  1. program ideone;
  2. var
  3. x0,x,eps: real;
  4. begin
  5. x:=1; {начальное приближение}
  6. eps:=0.001; {точность}
  7. repeat
  8. x0:=x;
  9. x:=1+sin(x0)-ln(1+x0);
  10. until abs(x0-x) <= eps;
  11. writeln('x=',x);
  12. readln;
  13. end.
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
x= 1.1473900412607549E+000