Advertisement
Kolyach

2

Mar 12th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. float a = -0.6, b = 5.3,z,t,c;
  10. if (a < b) z = sqrt(abs(pow(a,2) - pow(b,2)));
  11. else z= 1 - 2 * cos(a)*sin(b);
  12. c = log10(z);
  13. if (z < b) t = (pow(z + pow(a, 2),(1 / 3)));
  14. else if (z = b) t=(1 - c + cos(pow(a, 2) * b));
  15. else t=(1 / (cos(z*a)));
  16. cout << a << endl << b << endl << z << endl << t;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement