fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. int main() {
  5.  
  6. double x,y,z,a,b,c,r,k ;
  7.  
  8. x=-15.246;
  9. y=4.642e-2;
  10. z=20.001e2;
  11. k=fabs(x);
  12. a=log(pow(1/y,sqrt(k))*(k-y/2));
  13. b=pow(sin(atan(z)),2);
  14. r=a+b;
  15.  
  16. std::cout << r << std::endl;
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
15.7101