– misol. Quyidagi ifodaning qiymatini toping




Download 1,78 Mb.
bet196/275
Sana29.12.2020
Hajmi1,78 Mb.
#13001
1   ...   192   193   194   195   196   197   198   199   ...   275

2 – misol. Quyidagi ifodaning qiymatini toping. .


Yechish. Bunda h=0,1 x ning o`zgarish qadami, a va b lar esa uning boshlang`ich va oxirgi qiymatlari. Dasturni tuzamiz.
Program prew (input, output);

Uses printer;

Var x, y, a, b, h: real;

Begin writeln(‘kiritilsin – a, b, h’);

read(a, b, h);

x:= a;

while x<= b do

begin y:= (exp(3*ln(x))-4*x+1)/(sqr(x)+2*x+1);

writeln(‘y=’, y);

x:= x+h;

end;End.

Sharti keyin tekshiriladigan takrorlanish jarayoni. Takrorlanish jarayonining bu ko`rinishi ham takrorlanish soni oldindan noma’lum bo`lgan hollarda ishlatiladi. Bunday jarayonda biror buyruq yoki buyruqlar tizimi berilgan shart bajarulgunga qadar takror va takror bajariladi, bu jarayonning avvalgisidan farqi shundaki, bunda takrorlanishning tanasi hech bo`lmaganda bir marta bo`lsa ham bajariladi, chunki takrorlanishdan chiqih sharti takrorlanish tanasi bajarilgandan keyin tekshiriladi. Ushbu operatorning umumiy ko`rinishi quyidagicha:


Download 1,78 Mb.
1   ...   192   193   194   195   196   197   198   199   ...   275




Download 1,78 Mb.

Bosh sahifa
Aloqalar

    Bosh sahifa



– misol. Quyidagi ifodaning qiymatini toping

Download 1,78 Mb.