Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string integ;
- double lim[2];
- double answer;
- int i;
- setlocale(0, "");
- cout << "Введите пределеы интегрирования" << endl;
- for (i = 0; i < 2; i++) {
- cin >> lim[i]; cout << endl;
- }
- cin >> integ;
- cout << endl;
- cout << integ << endl;
- cout << "После преобразований получаем sqrt((x^2)+3)" << endl;
- //Подставляем значений
- answer = sqrt(pow(lim[0],2) -pow( lim[1], 2) + 3);
- cout << answer << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement