Advertisement
VXP

Untitled

VXP
Sep 29th, 2014
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #define _USE_MATH_DEFINES
  2. #include <math.h>
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. double sh( double x )
  7. {
  8.     return (exp(x)-exp(-x))/2;
  9. }
  10.  
  11. int _tmain(int argc, _TCHAR* argv[])
  12. {
  13.     setlocale(0, ".1251");
  14.     double x, n;
  15.     cout << "Введите x: "; cin >> x;
  16.     n = sh(x)*tan(x+1)-pow(M_PI/2 - atan(2+sh(x-1)), 2);
  17.     cout << "n = " << n << endl;
  18.     system("PAUSE");
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement