?>
Исправить ошибки в программе у=e^-bt*sin(at+b) - sqrt|bt+a|; s=b*sin(at^2cos(at))-1 #include #include #include #define _use_math_defines //лаб.работа 4 студента гр.3108 //привалова любовь //вариант 18 int main() { printf("l.r.#4 privalova l. 18-3108-19\n"); printf("\n"); double x, b, a, y, s, t ; printf("x="); scanf("%lf", & x); printf("b="); scanf("%lf", & b); printf("a="); scanf("%lf", & a); printf("t="); scanf("%lf", & t); y=pow(exp, -b*t)*sin(a*t+b)-sqrt(abs(b*t + a)); s=b*sin(a*double(t)*cos(a*t))-1; printf("y=%l.4f\n", y); printf("s=%l.4f\n", s); printf("press and key"); getch(); }
Ответы
:int main()
{
printf("L.r.#4 Privalova L. 18-3108-19\n");
printf("\n");
double x,b,a,y,s,t ;
printf("x=");scanf("%lf",&x);
printf("b=");scanf("%lf",&b);
printf("a=");scanf("%lf",&a);
printf("t=");scanf("%lf",&t);
y=pow(exp,-b*t)*sin(a*t+b)-sqrt(abs(b*t + a));
s=b*sin(a*double(t)*cos(a*t))-1;
printf("y=%l.4f\n",y);
printf("s=%l.4f\n",s);
printf("press and key");
getch(1);
}
Объяснение:Вроде тако не уверен