Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "iostream"
- #include "conio.h"
- #include "math.h"
- using namespace std;
- int main() {
- cout << "Avtor – Sibaev O., student gr. PIbd-11" << endl;
- cout << "Variant N 26" << endl;
- cout << "Programma vvodit znachenie argumenta x i vichislaet znachenie func Y" << endl;
- cout << " | 1 - x^4 x > 4" << endl;
- cout << "Y = | -2 * x 0 <= x <= 4" << endl;
- cout << " | e^sin(x) x < 0" << endl;
- cout << "vvedite x = ";
- double x = 0, y = 0;
- cin >> x;
- y = x > 4 ? 1 - pow(x, 4) : x >= 0 ? -2 * x : pow(exp(1.0), sin(x));
- cout << "Y = " << y << endl;
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement