1. LABORATORIYA IShI
1-Topshiriq: Arifmetik ifodalarni C++ algoritmik tilda yozing va dasturini tuzing
Hisobotda quyidagilar bo`lishi kerak:
1) Variantingiz sharti
2) Topshiriqning blok-sxemasi
2) Dastur teksti
3) Hisob natijasi (Monitordan ko`chirib oling)
5-variant
a) b)
# include
# include
using namespace std;
int main(){
double Y,x,e=2.71;
cout<<"x="; cin>>x;
Y=(2.15*cos(x)-0.45*atan(sqrt(1-pow(x,6))/(pow(x,3))))/(3.4*(pow(x*pow(e,cos(x))+pow(log(3.9+x*x*x),2),(1/5))));
cout<<"Y="<
return 0;}
Dastur natijasi:
2.
#include
#include
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
float T, x, y, e=2.71818904590;
cout<<"x="; cin>>x;
cout<<"y="; cin>>y;
T=(pow(e,pow(-x,2))*pow(sin(cos(pow(x,2))),2))/(pow((x+2*pow(y,2)),1/4));
cout<<"T="< return 0;
}
Dastur natijasi:
Do'stlaringiz bilan baham: |