Qo‘yilgan masala. Algoritmlarni loyihalash faniga kirish. Kvadrat tenglama ildizlarini aniqlash algoritmi. Uchburchak yuzasini Geron formulasi Ish tartibi


Download 225.76 Kb.
bet8/8
Sana19.04.2023
Hajmi225.76 Kb.
#1363240
1   2   3   4   5   6   7   8
Bog'liq
Amaliy ish 1 (1)

Program integral1(input,output);

Uses crt;

var a,b,h,s,J:real;

i,n:integer;
{nostandart funktsiyani tavsiflaymiz}
function f(x:real):real;

begin

f:=ln(x*x+3*x+1);

end;

begin clrscr;

write(‘quyi chegara a=’); readln(a);

write(‘yuqori chegara b=’); readln(b);

write(‘bo’laqlar soni n=’); readln(n);

s:=(f(a)+f(b))/2; h:=(b-a)/n;

for i:=2 to n do

s:=s+f(a+(i-1)*h);

J:=h*s; textcolor(13);

writeln(‘integral kiymati J=’,J:3:4);

end.







Amaliy ishni bajarish uchun topshiriqlar
1. Ifodaning qiymatini toping lga + lgb, agar lg(0,01ab) = 2,5
2. Ifodaning qiymatini toping 9*7log73
3. Ifodaning qiymatini toping 16log43
4. Ifodaning qiymatini toping log311*log1127
5. Ifodaning qiymatini toping (log981)*(log264)
6. Ifodaning qiymatini toping 6*4log43
7. Ifodaning qiymatini toping 13log32
8. Ifodaning qiymatini toping log312*log1023
9. Ifodaning qiymatini toping (1-log218)(1-log918)
10. Ifodaning qiymatini toping 18log46
11. Ifodaning qiymatini toping (log661)*(log354)
12 Ifodaning qiymatini toping log315*log1124
13 Matematik kutubxonaning (math.h) standart funktsiyalaridan foydalanib, lg (exp (100) va ln (exp (100)) qiymatlarini hisoblang.
14 1dan 10 gacha bo’lgan sonlarni natural logorifmlarini chiqaruvchi dastur tuzing.

Nazorat savollari

  1. Aniq integralni hisoblashning asosiy formulasini yozing va izoxlang

  2. Qaysi hollarda integralning kiymati taqribiy hisoblanadi?

  3. Integralning kiymatini taqribiy hisoblashning qanday usullarini bilasiz?

Download 225.76 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling