Android- : play.google.com
->

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 [73] 74 75 76 77 78

10 1* 15 PRINT 20 N=N!liIM A<N+H> 25 FOR 1=1 NSPRINT12.0! XI 30 INPUT Aa>ENEXT I

40 LETR=1SF0R 1=1 TO N5LETR=R»Aa>sNEXT I

45 LETE=lslF N/2-INT<N>2><>0 THEN LETE=-1

50 LETA<N*-H>=E»R!FOR L=l TO N-l

60 LETS=0EFOR K=l TO LsLETP=0sFOR 1=1 TO N

65 LETE=-l>fta>slF K2-INT<K2)=0 THEN UETE=ABS<E)

70 LETP=P+ESNEXT I

75 LETE=-lsIF <+1>>2-1+1>>2>=0 THEH LETE=1 80 LETS=S+:E«A<N+N+K-L)!(iP)sNEXT 90 LETA<N+N-U>=S.sHEXT L

100 FOR 1=1 TO NsPRINT!2.0!AN-I!F1.9.=A<l+N> 110 NEXT I SPRINT sENIi

. N = 4. :, = I. jc2 = 1, = - ! x,= - l a:j = 0, 02=-2, ai=0 ,>=1, . . P (jf)=x--2jc+!.

§ 5.2. ,

- - , ~. D . A-Xi = Bi, Xi = A~ -Bi. ~ .

5.2.

. :

4 8 0" .8 8 8 2 !

-4 8 0

8 8 8

2 0 1,

= 32

W = 3 ,

~ =

0,08333 -0,08333 0,666666 0,08333 0,041666 -0,33333 -0,166666 0,16666 0,33333

£) = 96 . , xi = 4, x2= -1,5 --2. , , = !, :2= ! : = 2.

05 PRINT »

10 PRINT <

15 PRINT -WOP

20 N=NsriM A:N/N>.-B<N>,S<N)

30 FOR 1=1 NsFOR J=l TO HSPRIHT12.8! AI,J

40 INPUT A<I»J)!NEXT JsNEXT I

58 LETII=l!LETR=l!FOR 1=1 TO NsFOR J=I TO N

80 IF AU/DOO THEN 118

98 NEXT J

100 PRINT !GOTO 388

lie GOSUB 19esLETA<I/I)=l>A«;bnEG0SUB 210

120 FOR J=l TO NsiF J=I THEN 140

130 LETB=-A:J/I)sLETA<J/I)=0!GOSUB 230

140 NEXT J!LETI!=Ii-A<I/I)!HEXT Is FOR I=H TO 1 STEP -1

150 IF A<b0)=I THEN 180

160 LETR=-RsFOR K=l TO N!LETB=A<K»1)

170 LETA<K»I>=A<K/Aa»0>)!LETA:K,A<be>>=B!NEXT

188 NEXT Is GOTO 248

190 FOR K=l TO NsLETB=A<bK>ELETA<bK)=A<J/K) 288 LETA<J/K>=B!NEXT !LETA<b0)=J! RETURN 210 FOR K=l TO NsiF K=I THEN 225 220 LETA(;i,K>=A<I»I>siiA:i»K>sNEXT KsRETURN 225 NEXT K!RETURN

230 FDR K=l TO N!LETA<J/K>=A<J»K)+BsiiA<bK>sNEXT KsRETURN 240 PRINT A-KbJJ 250 FOR 1=1 TO NSFOR J=l TO N

260 PRINT!2.e!A"-l<I/J>=!F1.9!A<bJ>!NEXT 1 I

265 LETr=r»RsPRINT Ii=Ii

270 FOR 1=1 TO N!PRINT!2.0! 1=!INPUT Ba)sHEXT I

275 FOR 1=1 TO N!LETS<O=0SFOR J=l TO N

280 LETS<I)=S<I)+B<J)»Aa/J)ENEXT J

290 PRINTKOPEHb X!2.0!I=F1.9!S<I)!NEXT IsGOTO 278 360 ENB



§ 5.3. . (W=3)

,+22+=4,

x-sT+T-s

: xi =0,1, = -0,6 = 1.7.

dt, BA+AkkS. s~(sign Atk) § 5.4.

"

= I AAit, F=(c+/i*,s)/B, t=fe.....,

. (i=l. 2, ...

D= BjAik, = (D + SBk)/, .... N) -

/=* [18]

F==Aik, F=F+S, i = k.

/-= )-«( -

A,j=A-P,F; j=k.....,

Bi=Bi~FE. i = k,...,n, k = n, n-1, !, n = N.

: *° . (/)-

, - -~ - - IB \/ . ,

Xk - bk-(Bk -L)lAtk, -

..

k=n,n-l, 1.

5.3. [, ].

le PRINT

15 PRINT 05

20 INPUT H=H:IlIM :,>

30 FOR 1=1 HjFOR J=1 N

4 PRINT!2.e< I,J: INPUT A<b.J>

50 IF J=H THEH PRINTBBEAHTE BIsIHPUT >)

60 NEXT JSNEXT I

78 FOR K=i TO H5LETA=8!FOR I=K TO H 88 LETA=A+H< -NEXT I:LETS=SbH-;ft:K..K)>i«SGR;ft> 8 LETB=A+Ai;Kf K>«S:FOR I=K TO N 100 LETC=6sF0R J=K TO H 110 LETC=C-ft<.JI!ft<.J*KsNEXT J 120 , I >=<C+S*Hf.Kj I) VB: NEXT I: LETri=0 138 FOR J=K TO H:LETri=ri+A<J,8>i«Af.J,K>!NEXT J 148 LETE=<:ri+S*H<K,8>:)/BsF0R I~K TO H 150 LETF=A<I,K)EIF I=K THEN LETF=F+S 160 FOR J=K TO HsLETft<bJ)=Aa/J>-A<0/J>*F!NEXT J 170 LETAa,8>=A<be)-Fi«EsHEXT IsHEXT K 180 FOR K=N TO 1 STEP -1!LETL=8!FOR l=K-H TO H 190 LETL=L+A<K,I)«Aa.-0>!NEXT I 200 LETA<K,0)=<A<K..8)-L>/A<K/K)sNEXT 210 PRINT sFOR 1=1 TO H 220 PRIHT!2.6iXI!Fi.9!:=:Aaf0)!HEXT isEND

5.4.

10 PRINT ! N 20 PRINT

30 H=H:riIM </),<).-<),<>

40 1 =

50 FOR 1=1 Ns FOR J=l

60 PRIHT!2.e! I,JsINPUT A<I,J)

70 IF J=H THEN PRINTBBEAHTE BIsIHPUT B<I>

80 NEXT JSNEXT I

90 LETS=0SFOR 1=1 TO NsPRINT I<0>sIHPUT SCDsNEXT I

100 LETK>0sFOR 1=1 TO H5LETX(I)=-B<I)

110 FOR J=l TO H:LETX<I)=xa>+fta,J)SKZ<J)

128 NEXT JSIF ABSi;X<I>vft<bn)>=E THEH LETK=1

138 LETX<n=2a>-X<I>/A<I,I>!HEXT I

140 FOR 1=1 TO H5LETZa>=X<I):HEXT I

158 LETS=S+l!lF K=l THEN 188

160 PRINT

170 FOR 1=1 TO N;PRIHT!2.e!XI=!F1.9.X<I>5next I 180 PRIHT!4.0! S=S!EHri



p. (/ = 3)

4jc+0.24j:s-0.08a--, = 8, 0,09:,-)- :-0,15:, = 9, 0.04 ~ 0,08.\2 + 4.V3 = 20,

= £=1-10- 1 = 2 = 1>= : .1:1 = !,9091, 2 = = 3,1949;. = 5,0448 ( , . s = I 10"" ) /Vtcp = 5 ( ).

§ 5.5.

, x,f, + i) . [18]

Xlii+l -

i-i N

= Xiii)-"(" "**(;-ni+ a!tXtii, - b, .

, . , , : 5.5.

m>n (. . , ). . , {- ) { -) . [X] = [/IB], - . .

= ( -~ -) :

flV=V7, ai> = a/aV, fV==bMV. /=1. 2. 3, .

)- a,-l 41". <=1. 2, 3.....,

f;"=(/-l-

10 20 PRINT

30 1 N=N!lilM A<N,N)/B(N)/XaO/Z<N>

40 INPUT =»

50 FOR 1=1 N! FOR J=l N

60 PRIHT !2.0I I, J: INPUT AO/J)

70 IF J=N THEN 1 UINPUT B<I>

80 NEXT JSNEXT I

98 LETS=0:FOR 1»=1 TO NsPRINT XI(8)s INPUT Z<1)eHEXT I

100 LETt<=0sFOR 1=1 TO NsLETX<I)=-B<I>

118 FOR J=l TO NSLETX<I)=X<I)+A<I»J)»Z<J)

120 NEXT JSIF ABS:X<I)-A<bI>)>=E THEN LETK=1

138 LETX<I)=Z<I>-X<I)/A<bnsLETZ<I)=X<ntNEXT I

150 LETS=S+lslF K=l THEN 180

160 PRINT

170 FOR 1=1 TO NSPRINT!2,0!XI«!F1.9(X<I)8NEXT I 180 PRINT!4.0! S=S!END-

. (/ = 3)

10x1+ ,+ =12. 21 + \0+ JC.= 13, 2-- 2-2+\0,= \4

=1-10- xi(i=JC2(i = Xin = 0 Xi = = 0.9999. 2 = 0,9999 ,= \ / = 5.

§ 5.6.

=,

; x,.(j)"-j: dih,la)\ i = n,n-\..... 1.

021 .

022 .

02,1

&2

. ,

2 .

. -

- . .

5.6.

. (n - N = 3, = = 6)

0,41X1- 0,352 + ,! = 0,22. 0,23X1 -(- 0,2x2 -(- 0,4! = 0,84, 0.46, - ,! 3x2-)-0.48X3 = 0,8!, ,! 7 I - 0,45X2 - 0,25 = 0,37, 0,83, -(- 0,27x2 - 0,51 = 0,59, 0.27x1 + 0.82x2 - 0.! 4X3 = 0,95

= !, 2= ! = 1 <»; 15 .



0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 [73] 74 75 76 77 78



0.0377
.