fork download
  1. Program Lab3 (output);
  2. const
  3. K=25.005;
  4. L=136.002;
  5. P=3.141592;
  6. var
  7. x,y,a,b:real;
  8. begin
  9. writeln('Please enter value for X');
  10. readln(x);
  11. a := sqrt(((K + exp((1/7)*ln(x)))) / 0.034);
  12. writeln('Result is A =',a);
  13. b:=arctan(cos(P/5)+cos((2*P)/3))*ln(x);
  14. writeln('Result is B =',b);
  15. if 2*a>b then
  16. y:=(exp(a)-exp(-a))/2;
  17. if 2*a=b then
  18. y:=a-b;
  19. if 2*a<b then
  20. y:=(exp(a-b)+exp(-a+b))/2;
  21. writeln('Result is Y =',y);
  22. end.
  23.  
Success #stdin #stdout 0s 5280KB
stdin
1
2
10
42
11
stdout
Please enter value for X
Result is A = 2.7655974782611995E+001
Result is B = 0.0000000000000000E+000
Result is Y = 5.1263380768746356E+011