510-guruh talabasi Qoxorjonov Akbarjon 8-labaratoriya ishi
Download 0.52 Mb.
|
Dasturlash 8-lab ishi Qoxorjonov Akbarjon
510-guruh talabasi Qoxorjonov Akbarjon 8-labaratoriya ishi 8-variant Берилган функция қийматини ҳисоблаш блок схемасини ва дастурини тузинг. Boshlash O’zgaruvchilarni kiritish Shartni kiritish A ni topish A va B qiymatlarini topish Tugash B ni topish Dasturning tana qismini yozishda adashib ketmaslik uchun ularni bo’lakalarga bo’lib ishlaymiz; ni N1 sifatida belgilab olamiz; ni esa N2 sifatida belgilab olamiz; Natijani esa: A=abs(N1/N2) orqali hisoblaymiz; ni N3 sifatida belgilaymiz; ni N4 sifatida belgilab B ning qiymatini N3*N4 orqali topamiz; var c:Number = 6.3; var d:Number = 1.2; var A;
var B; var N1:Number; var N2:Number; var N3:Number; var N4:Number; N1=Math.sin(Math.PI-c)*Math.sin(Math.PI-c)*Math.sin(Math.PI-c); N2=Math.pow((Math.pow((c-d),2)+Math.pow(Math.E,(-c,2))),1/2); A=Math.abs(N1/N2); N3=Math.pow((Math.abs((Math.tan(Math.PI/A)))),1/3); N4=Math.log((Math.abs((2*Math.pow(10,3)-Math.cos(c-d)*Math.cos(c-d))))); B=N3*N4; trace("A=" + A); trace("B=" + B); A=8.225045731586447e-7 B=8.251074929609667 2 – жадвал. Misolni 3 qismga bo’lib olamiz; N1=Kasrning surati sifatida; N2=Kasrning maxraji sifatida; N3= 3-darajali ildiz ostidagi ifoda sifatida. var c:Number = -2.235*Math.pow(10,(-2)); var d:Number = 2.23; var e:Number = 15.221; var A; var N1:Number; var N2:Number; var N3:Number; var N4:Number; N1=Math.pow(Math.E,(Math.abs(c-d)))*Math.pow((Math.abs(c-d)),(c+d)); N2=Math.atan(c)+Math.atan(e); N3=Math.pow((Math.pow(c,6)+Math.log(d)*Math.log(d)),1/3); A=(N1/N2)+N3; trace("Natija=" + A); Download 0.52 Mb. Do'stlaringiz bilan baham: |
ma'muriyatiga murojaat qiling