|
Program integral1(input,output)
|
səhifə | 8/8 | tarix | 26.07.2023 | ölçüsü | 225,76 Kb. | | #137505 |
| Amaliy ish 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
Aniq integralni hisoblashning asosiy formulasini yozing va izoxlang
Qaysi hollarda integralning kiymati taqribiy hisoblanadi?
Integralning kiymatini taqribiy hisoblashning qanday usullarini bilasiz?
Dostları ilə paylaş: |
|
|