Advertisement
evage

Untitled

Oct 11th, 2021
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. int main() {
  5.     double alpha;
  6.     double x, y, z; cin >> x >> y >> z;
  7.     if (y <= 0)
  8.     {
  9.         cout << "undefined, try again";
  10.         return 0;
  11.     }
  12.     alpha = log(pow(y, -sqrt(abs(x)))) * (x - y / 2) + pow(sin(atan(z)), 2);
  13.     cout << "alpha = " << alpha;
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement