
Арнольдович
4 год назад
Пожалуйста посчитайте решить 3 задачу через С++

ОТВЕТЫ

Aleksandra
Oct 24, 2020
#include <iostream>
#include <cmath>
using namespace std;
double F(double x, double y);
int main()
{
double x, y;
cout << "Введите x >> ";
cin >> x;
cout << "Введите y >> ";
cin >> y;
cout << "F(x,y)=" << F(x, y);
cout << endl;
system("pause");
}
double F(double x, double y)
{
return 2 / 3 * sin(sqrt((x*x - y*y) / exp(y + x)) + x*x*y*y) + (cos(x) + sin(y)) / 2;
}
#include <cmath>
using namespace std;
double F(double x, double y);
int main()
{
double x, y;
cout << "Введите x >> ";
cin >> x;
cout << "Введите y >> ";
cin >> y;
cout << "F(x,y)=" << F(x, y);
cout << endl;
system("pause");
}
double F(double x, double y)
{
return 2 / 3 * sin(sqrt((x*x - y*y) / exp(y + x)) + x*x*y*y) + (cos(x) + sin(y)) / 2;
}
935
Смежные вопросы: