Guest User

Untitled

a guest
Jan 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     double x;
  9.     cout << "Vvedite x: ";
  10.     cin >> x;
  11.  
  12.     cout << endl << "f(x) = ";
  13.     if ( x > 5 )
  14.         cout << exp(sin(x) - cos(x)) << endl;
  15.     else if ( x > -3 && x <= 5 )
  16.         cout << 1/(1 -x -6*x*x) << endl;
  17.     else
  18.         cout << acos(8/log(-1.0)) << endl;
  19.  
  20.     return 0;
  21. }
Add Comment
Please, Sign In to add comment