.


:




:

































 

 

 

 


.




: .

, , :

:

while <> do <_>;

<> . , , <> . <> , .

8. , :

Var punct: byte;

Begin

while True do

begin

{ }

writeln (' ');

writeln (' 1 - Hello!');

writeln (' 2 - Hello! Hello!');

writeln (' 3 - Exit');

write (' <Enter>: ');

readln (punct); //

{ }

case punct of

1: begin writeln (' !'); readln end;

2: begin writeln (' !!'); readln end;

3: begin write (' ': 2000); Halt end

else

begin

write (' . <ENTER>. !!!');

readln

end

end { case }

end; { while }

.........

: H alt .

:

repeat <_> until (<>;

, <> . <> , .

9. .

Program Example_9;

{$APPTYPE CONSOLE}

Uses

SysUtils;

Var X, stepX: real48;

Begin

X:= 0;

stepX:= 0.1;

Repeat

X:= X+stepX;

writeln(x);

until X=1e3;

Readln

E nd.

() (.3):

.3. ( 9)

: Floating point overflow. ( X=1 e3 ).

 

, . , . . , . : , , . . , , . : , .

. , . : . , . . , . , , . , , . , . - . , . Var.

10. , n . : 1, 1, 2, 3, 5, 8, 13, 21, , .

Program Example_10;

{$APPTYPE CONSOLE}

Uses SysUtils;

Var

n: integer; //

f1, f2: integer; //

sum: integer; //

//

Procedure Fib (fib 1, fib 2, N: integer; Var n _ Fib: integer);

Var i:integer;

Begin

for i:= 3 to N do

begin

n_Fib:= fib1 + fib2;

fib1:= fib2;

fib2:= n_Fib;

end;

end; {Fib}

Begin

write(' N = ');

Readln (n);

f1:= 1; f2:= 1;

Fib(f1,f2,n,sum); //

writeln(n,'- =',sum:5);

Readln

E nd.

 

(.4):

.4. ( 10)

 

( ), x. : , .

, . . , . . . x , . : , , .

5:

5

1 x - x3/3! + x5/5! - x7/7! +
2 sina +x cos a -x2 sina /2! - x3 cosa /2! + x4 sina /4! +
3 1- x2/2! + x4/4! - x6/6!+
4 cosa+ x sin a- x2cosa /2! -x3sina /2! +x4 cosa /4! +
5 x + x3/3! + x5/5! + x7/7! +
6 1+ x2/2! + x4/4! + x6/6!+
7 1+ x + x/2! + x/3! +
8 1 + x ln a + (x ln a)2/2! + (x ln a)3/3! +
9 (x-1) - (x-1)2/2 + (x-1)3/3 -(x-1)4/4 +
10 x + x3/2*3 +3* x5/2*4*5 +3*5* x7/2*4*6*7 +
11 p-(x + x3/2*3 +3* x5/2*4*5 +3*5* x7/2*4*6*7+ )
12 p/2-1/ x + 1/3 x3 -1/5 x5 +1/7 x7- + x>0 - x<0 arctg x (|x|>=1)
13 p/2 (x - x3/3 + x5/5 - x7/7 - ) arcctg x (|x|>=1)
14 x(3+x)/3! x3(5+x)/5! +x 5(7+x)/7! - (1-cos x-sin x)/x
15 x/3! - x3/5! + x5/7! - x7/9! + (x sin x)/x2
16 2x/1!-3x2/2!+4x3/3!-5x4/4!+ xe -x - ex + 1
17 x2(1/1! +1/2!) - x4(1/2!+1/4!)+ x6(1/3!+1/6!)+ 2 e -xx cos x
18 x(1/1 +1/1!) - x2(1/2+1/2!)+ x3(1/3+1/3!)+ ln(1+ x) - xe -x +1
19 x(1/1! - 1/2!) x2(1/2!- 1/4!)+ x3(1/3!-1/6!)+ cosÖx - e -x
20 x(2 + x))/2! - x3(4 + x)/4! x5(6 + x)/6! + sin x cos x + 1
21 1 - 3x2/2! + 5x4/4! 7x6/6! + cos x- xsin x
22 2x6/3!- 4x10/5! + 6x14/7! - 8x18/9! + sin x2 - x2cos x2
23 x(2-x)/2! + x5(6-x)/6! + x9(10-x)/10!+ (sinx+cosx-e -x)/2
24 x2(1/1! +1/1!) - x4(1/2!+1/3!)+ x6(1/3!+1/5!)- xsin x- e -xx + 1
25 x2/4! - x4/6! + x6/8!- x8/10! + (cosx-1)/ x2 +1/2




:


: 2018-10-15; !; : 567 |


:

:

, .
==> ...

1778 - | 1581 -


© 2015-2024 lektsii.org - -

: 0.024 .