Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // lb1.1.8.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int s, t;
- double y, x;
- cout << "Enter x, t, s" << endl;
- cin >> x;
- cin >> t;
- cin >> s;
- setlocale(LC_ALL, "rus");
- if (s <= 0 || (t % 2 ==0 && x < 0)) {
- cout << "Некоторые переменные не входят в область допустимых значений" << endl;
- }
- y = pow(cos(x*x), 2) / (s*pow(x, 1/t));
- cout << y << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement