SHARE
TWEET

Untitled

a guest Dec 13th, 2018 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. program zaloopa;
  2. uses math;
  3. const
  4. a = -5.2;
  5. b = 4.83;
  6. c = 2;
  7. var x: real;
  8. begin
  9. x:=8.15;
  10. write('x = ',x:0:2,'  f = ');
  11. writeln(sqrt(abs(a+b*power(x,3)))+c:0:5);
  12. x:=-1.5;
  13. write('x = ',x:0:1,'  f = ');
  14. writeln(exp(a*sin(x)):0:5);
  15. x:=2.2;
  16. write('x = ',x:0:1,'  f = ');
  17. writeln(a*ln(abs(b+c/(2*x))):0:5);
  18. end.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top