«Экономикалық ақпараттық жүйелердегі бағдарламалық жабдықтау» 1-деңгей



бет20/20
Дата15.03.2024
өлшемі170.17 Kb.
#495648
түріБағдарламасы
1   ...   12   13   14   15   16   17   18   19   20
Экономика ответтеры

3-деңгей
Мына формулалар бойынша есептеулер жүргізетін программа құрыңыз:



#include
#include
using namespace std;
int main(){
double a =1.5;
double b =2;
double c =-0.75;
double y= a*pow(c,sqrt(b))*cos(a)*b+c;
cout<return 0;
}



#include
#include
using namespace std;
int main()
{
double a =2;
double b =0.7;
double c =0.5;
double y= a*cos(b*sin(a))+c;
cout<return 0;
}



#include
#include
int main() {
double a, b, c, z;

std::cout << "Введите значение a: ";


std::cin >> a;

std::cout << "Введите значение b: ";


std::cin >> b;

z = sqrt(a + b * c * sin(a) + 1);


std::cout << "Результат вычислений: " << z << std::endl;


return 0;


}



#include
#include
using namespace std;

int main()


{
double m =2;
double c =-0.5;
double r =2.7;
double g =2.3;
double f =sqrt(m*r*g*c+c*sin(m));
cout<

return 0;


}





#include
#include
using namespace std;
int main()
{
double b =-2.3;
double a = -0.5;
double y;
y =b*pow(a,a)-a/exp(a*b)-1;
cout<return 0;
}



#include
#include
using namespace std;
int main()
{
double b =1;
double a = 0.5;
double y;
S =exp(-a)*sqrt(b+1)+exp(-1)*cbrt(a+1.5);
cout<
return 0;
}



#include
#include
using namespace std;
int main()
{
double b =0.5;
double a = 3.7;
double y;
y = b*atan(b/a)-sqrt(5*b+a);
cout<
return 0;
}



#include
#include
using namespace std;
int main()
{double b =-2.3;
double a = 4.1;
double x = 2.1;
double z;
z =b+a*cos(2*x)/a+sqrt(a+b*sin(3*x));
cout<
return 0;}



15. #include
#include

int main() {


double a = 2.7;
double b = 1.7;
double numerator = 2;
double denominator = b + 2;
double exponent = exp(-pow((a + b), 2));
double result = (numerator / denominator) * exponent;
std::cout << "Результат выражения: " << result << std::endl;
return 0;
}

16. #include


#include
int main() {
double a = 1.5;
double b = 0.9;
double numerator = pow(a, 2) + pow(b, 2) * cos(a + b) * a;
double denominator = a + 1;
double result = numerator / denominator;
std::cout << "Результат выражения: " << result << std::endl;
return 0;
}
19) #include
#include
using namespace std;

int main()


{
double a=2.1, b=-0.3, S;
S=b*sin(a*a+cos(2*b))-1;
cout<<"S="<return 0;
}
20) #include
#include
using namespace std;

int main()


{
double a=0.5, b=3.1, Z;
Z=sqrt(a*b*sin(2*a)+exp(-2)*(a+b));
cout<<"z="<return 0;
}
2
2
2
#include
#include
using namespace std;
int main()
{
double a = 2.3,x = 1;
double f;
if(x>0.3)
f = pow(x + a, 1/5);
else if (x == 0.3)
f = x;
else
f = cos(x-a);
cout<<"f:"<return 0;
}


2
#include
#include
using namespace std;
int main()
{
double a = 2.7, b = -0.27,x = 5;
double y;
if(x<2.3)
y = (a + b)/ (exp(x) + pow(cos(x),x));
else if(x>=2.3 && x<5)
y = (a + b) * (x + 1);
else if(x>=5)
y = exp(x) + sin(x);
cout<<"y:"<return 0;
}


2
2
2
#include
#include
using namespace std;
int main()
{
double a=2.1, b=0.3, t=2, Z;
if (t<0.1)
Z=sqrt(a*t*t*b*sin(t)+1);
if(t=0.1)
Z=a*t+b;
if(t>0.1)
Z=sqrt(a*t*t+b*cos(t)+1);
cout<<"z= "<return 0;
}


2
#include
#include
using namespace std;

int main()


{
double a=1.5, x=6, Y;
if (x<0.3)
Y=a*exp(sin(x))+2.5;
if(x=0.3)
Y=exp(cos(x))+a;
if(x>0.3)
Y=(sin(x))/(a+exp(x));
cout<<"y= "<return 0;
}


2
#include
#include
using namespace std;
int main()
{
double c = 0.5;
double d = 1.3;
double t = 4;
double f;
if(t<0.4){
f = c*tan(t)+pow(t+d,3);
}
else if(t==0.4){
f = c/(d*t)+log(t*t+c);
}
else f = sin(c+d*t)+cos(d-t);
cout<return 0;
}



#include
#include
using namespace std;
int main(){
double c = -1.5;
double b = 3.15;
double a = 2.1;
double t =2.8;
double i = 10;
double s;
if(i<3){
s = a/t+b*i*i+c; }
else if(3<=i && i<=7){
s = i; }
else s = a*i+b*pow(i,3);
cout<return 0;}



#include
#include
using namespace std;

int main()


{
double a = 1.5, x = 9, pi = 3.14;
double y;
if(x<1.3)
y = pi * pow(x,2) - 7/pow(x,2);
else if(x == 0.3)
y = a * pow(x,3) + 7 * sqrt(x);
else if(x>1.3)
y = log(x + 7 * sqrt(x))/ log(10);
cout<<"y:"<return 0;
}



#include
#include
using namespace std;
int main()
{
double a = 2, b = 0.5;
double i , z;
if(i>5)
z = a * i + b / i;
else if(i >= 5 && i<=10)
z = a * i* i +b;
else if(i>10)
z = pow(i,3);
cout<<"z:"<return 0;}





#include
#include
using namespace std;
int main()
{
double a=-1.3, b=-0.5, t=3, x, Z;
if (x>1)
Z=exp(-2*x)*sin(b*x);
if(x=1)
Z=cos(b*x);
if(x<1)
Z=exp(-x)*cos(b*x);
cout<<"z= "<return 0;
}


41.

#include
#include
using namespace std;
int main()
{
double a=1.3, b=-0.5, t=3, F;
if (t<=1)
F=a*t*t-b*sqrt(t+1);
if(t>=1 && t<=2)
F=a-b;
if(t>2)
F=a*pow(2/3,t)-b*pow(1/3,t+1);
cout<<"f= "<return 0;
}


Достарыңызбен бөлісу:
1   ...   12   13   14   15   16   17   18   19   20




©dereksiz.org 2024
әкімшілігінің қараңыз

    Басты бет