irapilguy

Untitled

May 25th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. program nut;
  2. var x0,x,e:real;
  3. f:text;
  4. begin
  5. writeln(' x0, e ');
  6. readln(x,e);
  7. repeat
  8. x0:=x;
  9. x:=x0-(exp(x0*ln(2))+5*x0-3)/(exp(x0*ln(2))*ln(2)+5);
  10. until abs(x-x0)<e;
  11. writeln('x=',x:8:4);
  12. end.
Add Comment
Please, Sign In to add comment