Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "time.h"
- using namespace std;
- int main()
- {
- setlocale(LC_CTYPE, "Russian");
- double x, a = 105 * pow(10, (-4)), s, p;
- int m = 4, i = 7, k;
- for (k = 1; k <= 4; k++)
- {
- cout << "Введите x" << k << ": ";
- cin >> x;
- s = exp((-a)*x) - ((log(i / (x*m))) / pow(log(m), 2));
- if (s > 2 * x) p = pow((-i)*s, 2);
- if (s <= 2 * x) p = sin((-6)*s);
- cout << "s=" << s << " p=" << p << '\n';
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement