Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _USE_MATH_DEFINES
- #include <math.h>
- #include <iostream>
- using namespace std;
- double sh( double x )
- {
- return (exp(x)-exp(-x))/2;
- }
- int _tmain(int argc, _TCHAR* argv[])
- {
- setlocale(0, ".1251");
- double x, n;
- cout << "Введите x: "; cin >> x;
- n = sh(x)*tan(x+1)-pow(M_PI/2 - atan(2+sh(x-1)), 2);
- cout << "n = " << n << endl;
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement