Uploaded by xcoder03

dasturlash amaliy

advertisement
O’zbekiston Respublikasi axborot texnologiyalari va kommunikatsiyalari rivojlantirish
vazirligi Muhammad Al-Xorazmiy nomidagi Toshkent axborot texnologiyalari unversiteti
1-laboratoriya ishi
Mavzu: Chiziqli algoritm
Bajardi: Muhammadjonov Muhiddin
Guruh:140-22
VARIANT: 9
Tekshirdi:Rustamova Mohichexra
TOSHKENT-2022
KOD:
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
float a,b,c,d,y;
cout<<"a ga qiymat bering" <<endl;cin>>a;
cout<<"b ga qiymat bering" <<endl;cin>>b;
cout<<"c ga qiymat bering" <<endl;cin>>c;
cout<<"d ga qiymat bering" <<endl;cin>>d;
y=(pow(a,(-2))*pow((b/10),3)*pow((c+d),2));
cout<<"y="<<y<<endl;
return 0;
}
A=2.6, B=56.6, C=35,
D=-20.3
KOD:
#include<iostream>
#include<cmath>
using namespace std;
int main(){
double x,y,z;
cout<<"x="; cin>>x;
cout<<"y="; cin>>y;
cout<<"z="; cin>>z;
cout<<"w="<<fabs(pow(x,y/x)-pow(y/x,1/3))+(yx)*(cos(y)-z/(y-x))/(1+pow(y-x,2));
return 0;
}
Download