Advertisement
deced

Untitled

Sep 15th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.53 KB | None | 0 0
  1. program Lab1_3;
  2.  
  3. {$APPTYPE CONSOLE}
  4.  
  5. {$R *.res}
  6. uses System.SysUtils;
  7.        var x0, x1, e, iteration : double;
  8. begin
  9.       e := 0.00001;
  10.       x1 := 1;
  11.       repeat
  12.         begin
  13.         iteration := iteration+1;
  14.           x0 := x1;
  15.           // x1 :=(9.33 *Sin(6.977*x0))/7.25; // моя функция
  16.            x1 :=2 - Sin(1/x0);  // функция из видео
  17.           Writeln('Итерация '+floattostr(iteration) + ' x = '+ floattostr(x1));
  18.         end;
  19.       until Abs(x0 - x1) < e;
  20.       readln;
  21. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement