Guest User

Untitled

a guest
Jan 20th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. var
  2. x,y,e,temp:real;
  3. i:byte;
  4.  
  5. begin
  6. x:=-0.5;
  7. while x<=(0.5+0.001) do
  8. begin
  9. i:=1;
  10. while e<=0.01 do
  11. begin
  12. e:=Abs(Abs(temp)-abs(exp(ln(x)*i) / i));
  13. temp:=(exp(ln(x)*i) / i);
  14. if i mod 2 = 0 then temp:=-1 * temp;
  15. y:=y + temp;
  16. end;
  17. Writeln('pri x = ',x:1:1,' y = ',y:1:3);
  18. x:=x+0.1;
  19. end;
  20. end.
Add Comment
Please, Sign In to add comment