Advertisement
VictoriaLodochkina

lab 9 z1 govnokod

Nov 19th, 2019
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3. #include <cmath>
  4.  
  5. double funk(double, double);
  6. int main()
  7. {
  8.     using namespace std;
  9.     double z, x, y;
  10.     cout << "Enter x and y: ";
  11.     cin >> x >> y;
  12.     cout << endl;
  13.     if ((x != y) && (y > 0))
  14.     {
  15.         z = funk(y, x) + fabs(((sqrt(((3 * funk(x, y)))) / ((x - y)*exp(2 * x))));
  16.         cout << funk(y, x) << endl;
  17.         cout << funk(x, y) << endl;
  18.         cout << "Your result: " << z;
  19.     }
  20.     else
  21.     {
  22.         cout << "Error";
  23.     }
  24.     return 0;
  25. }
  26. double funk(double t, double p)
  27. {
  28.     double funkt = asin(3 * t) - sin(2 * p);
  29.     return funkt;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement