
Эдуард
6 год назад
Вычислить значение переменной y по заданной расчетной формуле и набору исходных данных. Значения исходных данных вводить с клавиатуры. На печать вывести значения вводимых исходных данных и результат вычислений, сопровождая вывод наименованием выводимых переменных.

ОТВЕТЫ

Антонович
Jul 9, 2019
#include lt;iostreamgt;
#include lt;math.hgt;
using namespace std;
int main(){
double c,d,x,y;
cout lt;lt; "Input C: ";
cin gt;gt; c;
cout lt;lt; "Input D: ";
cin gt;gt; d;
cout lt;lt; "Input X: ";
cin gt;gt; x;
y = pow(sin(pow(x, 3) * c + d * pow(x, 2)), 3) / sqrt(fabs(pow(c * x + d * pow(x, 2) - x, 2) - pow(c, 2))) + tan(pow(x, 2/3));
cout lt;lt; "\nC: " lt;lt; c lt;lt; "\nD: " lt;lt; d lt;lt; "\nX: " lt;lt; x lt;lt; "\nY = " lt;lt; y lt;lt; endl; return 0;
}
#include lt;math.hgt;
using namespace std;
int main(){
double c,d,x,y;
cout lt;lt; "Input C: ";
cin gt;gt; c;
cout lt;lt; "Input D: ";
cin gt;gt; d;
cout lt;lt; "Input X: ";
cin gt;gt; x;
y = pow(sin(pow(x, 3) * c + d * pow(x, 2)), 3) / sqrt(fabs(pow(c * x + d * pow(x, 2) - x, 2) - pow(c, 2))) + tan(pow(x, 2/3));
cout lt;lt; "\nC: " lt;lt; c lt;lt; "\nD: " lt;lt; d lt;lt; "\nX: " lt;lt; x lt;lt; "\nY = " lt;lt; y lt;lt; endl; return 0;
}
29