# Bajardi: 830-19 guruh talabasi Alijonov Firdavs

 Sana 31.12.2021 Hajmi 442,78 Kb. #236650
Bog'liq
3-lab ALIJONOV 830-19 8-V
konstruksion mashinasozlik polatlari, jadval, JURNALI, SHAXSIY KOMPYUTERning tuzilishi, 3-амалий машғулотга масала ечиш тартиби, 4293774998, 2 5404616906315401111, Vorobyeva однородные осаждение Ni в проы оксида алюминия, ingliz tili mus ish, English-Zahiriddin Muhammad Bobur, ozbek tili tarixi 1 topshiriq, 4-KTE, Yunoniston madaniyati, Yunoniston madaniyati, akademik S.L

O‘ZBEKISTON RESPUBLIKASI AXBOROT

TEXNOLOGIYALARI VA KOMMUNIKATSIYALARINI

RIVOJLANTIRISH VAZIRLIGI

AXBOROT TEXNOLOGIYALARI UNIVERSITETI

Algoritmlarni loyihalash fani bo`yicha

## Tekshirdi: Narmanov Otabek

TOSHKENT-2021
1-vazifa

Dastur kodi:

#include

#include

#include

using namespace std; int main(){

double a[11],b[11],c[11],

f[21] = {10.70422, 6.456439, -13.8395, -8.7745, 12.5674, 8.674694, -11.4877, -6.52245,

14.50405, 10.10909, -10.7004, -6.46218, 13.83584, 8.78067, -12.5635, -8.68036, 11.48409,

6.528406, -14.5002, -10.1149, 10.6966 }; float T=0.0001,h,w,Sa=0,Sb=0,S0=0,Sx=0,Sy=0 ;

w=f[0];

int i,j,n=21,k=10; h=T/(n-1);

for(i=1; i

for(j=1;j

Sa += f[j]*(sin(i*M_PI*2*h*(i+0.5)*1./T)-sin(i*M_PI*2*h*(i-0.5)*1./T));

Sb += f[j]*(cos(i*M_PI*2*h*(i+0.5)*1./T)-cos(i*M_PI*2*h*(i-

0.5)*1./T));

}

a[i] = (1/(M_PI*i))*(f[0]*sin(M_PI*i*h/T)+f[n-1]*(sin(2*M_PI*i)-sin(i*2*M_PI*(Th/2)/T))+Sa);

b[i] = (1/(M_PI*(i)))*(f[0]*(cos(M_PI*i*h/2*T)-1)+f[n-1]*(cos(2*M_PI*i)cos(i*M_PI*(2-h/T)))+Sb)*(-1);
c[i] = sqrt(pow(a[i],2)+pow(b[i],2));

}

double max = c[1];

int ind = 1; for(i=1; i<=k; i++){ if(max

}

cout<<"f(x)= "<

Dastur natijasi:

2-vazifa

Dastur kodi:

#include

#include #include using namespace std; int main(){

double x[] = {0.11, 0.15 ,0.21, 0.29, 0.35, 0.40}; double y[] = {0.896, 0.812, 0.774, 0.955, 0.715, 0.911}; double a,b,Sx = 0, Sy = 0, Sxy = 0, Sx2 = 0; int i,n=6;

for(i=0; i

Sx += x[i];

Sy += y[i];

Sxy += x[i]*y[i];

Sx2 += pow(x[i],2);

}

a = (n*Sxy - Sx*Sy)/(n*Sx2-pow(Sx,2)); b = (Sy - a*Sx)/n;

cout<<"Natija: y(x)="<

}

Dastur natijasi: