O`zbekiston respublikasi axborot texnologiyalari va komunikatsiyalarini rivojlantirish vazirligi




Download 0.51 Mb.
Sana24.11.2022
Hajmi0.51 Mb.
#31531
Bog'liq
MO\'


O`ZBEKISTON RESPUBLIKASI AXBOROT TEXNOLOGIYALARI VA KOMUNIKATSIYALARINI RIVOJLANTIRISH VAZIRLIGI

Muhammad Al-Xorazmiy nomidagi Toshkent axborot texnologiyalari universiteti


Amaliy Topshiriq 1

MO’ fanidan


712_20 guruh talabasi
Bajardi: Sayfulloyev Firdavs
Tekshirdi:  Qobilov Sirojiddin Sherqulovich

Toshkent – 2022


22

Sayfulloyev Firdavs Faxriddin o‘g‘li

Y = (5/2)*x-2/3





DASTUR KODI:
import time
import numpy as np
import matplotlib.pyplot as plt
N=int(input("N sonini kiriting =>"))
x=np.zeros(N)
y=np.zeros(N-1)
r=np.zeros(N)
w=np.zeros(N)
w1=np.zeros(N-1)
x[0]=1
for i in range(1,N):
x[i]=x[i-1]+1
y[i-1]=5/2*x[i-1] – 2/3

w[0] = 0
for i in range(1,N):


S=0
for j in range(0,3):
r[j]=pow(w[i-1]*x[j]-y[j],2)
S=S+r[j]
w1[i-1]=S/3
w[i] = w[i-1] + 0.01
print(w1[i-1])
plt.plot(w1)
plt.show()

Qadamlar soni:
w[i] = w[i-1] + 0.01
a=0.01 ga teng
Natijam:





SAYFULLOYEV FIRDAVS
Download 0.51 Mb.




Download 0.51 Mb.

Bosh sahifa
Aloqalar

    Bosh sahifa



O`zbekiston respublikasi axborot texnologiyalari va komunikatsiyalarini rivojlantirish vazirligi

Download 0.51 Mb.