SHARE
TWEET

Lab1

a guest Oct 22nd, 2017 71 in 335 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. void main()
  6. {
  7.     double Y, R, a = 0.3, x = 0.53, b = 0.9;
  8.  
  9.     Y = (pow(a, 2 * x) + pow(b, -x) * cos(a + b)*x) / fabs(x - 1);
  10.     cout << "Y: " << Y << endl;
  11.  
  12.     R = sqrt(pow(x, 2) + b) - pow(b, 2)* pow(sin(x + a), 3) / x;
  13.     cout << "R: " << R << endl;
  14.     system("pause");
  15. }
RAW Paste Data
Top