Advertisement
evage

В - 3 зд - 2 вычислить зн-ие ф-ии

Sep 19th, 2021
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #define _USE_MATH_DEFINES
  3. #include <math.h>
  4. #define w(x,y) (2 * x * y) / (x + cos(y))
  5. #define f(x,y,z) sqrt(x * sin(2 * y)) / (z + pow(M_E,x) * y)
  6. using namespace std;
  7. int main() {
  8.     const double x = 2.87, y = 0.84;
  9.     double z = w(x, y);
  10.     double b = f(x, y, z);
  11.     cout << "z = " << z << '\n';
  12.     cout << "b = " << b;
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement