Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double s, x, y, z, a, b, c, d;
  9.  
  10. cout << "Enter X: " << endl;
  11. cin >> x;
  12. cout << "Enter Y: " << endl;
  13. cin >> y;
  14. cout << "Enter Z: " << endl;
  15. cin >> z;
  16.  
  17. a = pow(y, pow(abs(x), 1./3.));
  18. b = pow(cos(y), 3);
  19. c = abs(x - y) * (1.0 + (pow(sin(z), 2)/pow((x+y), 1./2.)));
  20. d = exp(abs(x-y)) + x/2.;
  21.  
  22. s = a + (b*(c/d));
  23.  
  24. cout << s << endl;
  25.  
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement