Математическое моделирование. Черный А.А. - 211 стр.

UptoLike

Составители: 

211
940 F(13) = B1: H(13) = C2: F(14) = E1: H(14) = C2: F(15) = E1: H(15) = D2
950 F(16) = C1: H(16) = A2: F(17) = C1: H(17) = C2: F(18) = C1: H(18) = E2
960 F(19) = C1: H(19) = D2: F(20) = C1: H(20) = B2: F(21) = D1: H(21) = A2
970 F(22) = D1: H(22) = C2: F(23) = D1: H(23) = E2: F(24) = D1: H(24) = D2
980 F(25) = D1: H(25) = B2: GOTO 1130
1130 PRINT "IF I0=6 GOTO 40-НАЧАЛО"
1135 PRINT "IF I0=7 GOTO 1160-ПРОДОЛЖЕНИЕ"
1140 INPUT I0: IF I0 = 6 GOTO 40
1150 IF I0 = 7 GOTO 1160
1160 PRINT "ВВОД ВЕЛИЧИН ПОКАЗАТЕЛЕЙ ПО ПЛАНУ Y(J) "
1161 PRINT #1, "ВЕЛИЧИНЫ ПОКАЗАТЕЛЕЙ В СООТВЕТСТВИИ С ПЛАНОМ Y(J)"
1165 FOR J = 1 TO X
1166 PRINT "Y("; J; ")": INPUT Y(J)
1170 PRINT #1, "Y("; J; ")="; Y(J): NEXT J
1180 PRINT "IF I0=1 GOTO 1160-ПОВТОРЕНИЕ ВВОДА ПОКАЗАТЕЛЕЙ"
1185 PRINT "IF I0=2 GOTO 1230-ПРОДОЛЖЕНИЕ"
1190 PRINT "ВВОД I0": INPUT I0: IF I0 = 1 GOTO 1160
1200 IF I0 = 2 GOTO 1230
1230 IF X = 5 GOTO 1330
1290 IF X = 25 GOTO 1390
1330 GOSUB 4290: GOTO 1410
1390 GOSUB 4290: GOSUB 4340: GOTO 1410
1410 S = 0: O(1) = 0: FOR J = 1 TO X: S = S + Y(J): O(1) = O(1) + 1: NEXT J
1420 B(1) = S / O(1): S = 0: O(2) = 0: FOR J = 1 TO X: S = S + I(J) * Y(J)
1430 O(2) = O(2) + I(J) ^ 2: NEXT J: B(2) = S / O(2): S = 0: O(3) = 0
1440 FOR J = 1 TO X: S = S + K(J) * Y(J): O(3) = O(3) + K(J) ^ 2: NEXT J
1450 B(3) = S / O(3)
1470 IF X = 5 GOTO 2000
1480 S = 0: O(4) = 0: FOR J = 1 TO X: S = S + P(J) * Y(J)
1490 O(4) = O(4) + P(J) ^ 2: NEXT J: B(4) = S / O(4): S = 0: O(5) = 0
1500 FOR J = 1 TO X: S = S + I(J) * P(J) * Y(J): O(5) = O(5) + (I(J) * P(J)) ^ 2
1510 NEXT J: B(5) = S / O(5): S = 0: O(6) = 0: FOR J = 1 TO X
1520 S = S + Q(J) * Y(J): O(6) = O(6) + Q(J) ^ 2: NEXT J: B(6) = S / O(6)
1530 S = 0: O(7) = 0: FOR J = 1 TO X: S = S + I(J) * Q(J) * Y(J)
1540 O(7) = O(7) + (I(J) * Q(J)) ^ 2: NEXT J: B(7) = S / O(7): S = 0
1550 O(8) = 0: FOR J = 1 TO X: S = S + P(J) * K(J) * Y(J)
1560 O(8) = O(8) + (P(J) * K(J)) ^ 2: NEXT J: B(8) = S / O(8): S = 0: O(9) = 0
1570 FOR J = 1 TO X: S = S + K(J) * Q(J) * Y(J): O(9) = O(9) + (K(J) * Q(J)) ^ 2
1580 NEXT J: B(9) = S / O(9)
1600 S = 0: O(10) = 0: FOR J = 1 TO X: S = S + U(J) * Y(J): O(10) = O(10) + U(J) ^ 2
1610 NEXT J: B(10) = S / O(10): S = 0: O(11) = 0: FOR J = 1 TO X
1620 S = S + I(J) * U(J) * Y(J): O(11) = O(11) + (I(J) * U(J)) ^ 2: NEXT J
1630 B(11) = S / O(11): S = 0: O(12) = 0: FOR J = 1 TO X: S = S + K(J) * U(J) * Y(J)
1640 O(12) = O(12) + (K(J) * U(J)) ^ 2: NEXT J: B(12) = S / O(12)
1670 S = 0: O(13) = 0: FOR J = 1 TO X: S = S + V(J) * Y(J)
1680 O(13) = O(13) + V(J) ^ 2: NEXT J: B(13) = S / O(13): S = 0: O(14) = 0
1690 FOR J = 1 TO X: S = S + I(J) * V(J) * Y(J): O(14) = O(14) + (I(J) * V(J)) ^ 2
1700 NEXT J: B(14) = S / O(14): S = 0: O(15) = 0: FOR J = 1 TO X
1710 S = S + K(J) * V(J) * Y(J): O(15) = O(15) + (K(J) * V(J)) ^ 2: NEXT J
1720 B(15) = S / O(15)
1730 S = 0: O(16) = 0: FOR J = 1 TO X: S = S + L(J) * Y(J): O(16) = O(16) + L(J) ^ 2
1740 NEXT J: B(16) = S / O(16): S = 0: O(17) = 0: FOR J = 1 TO X
1750 S = S + P(J) * L(J) * Y(J): O(17) = O(17) + (P(J) * L(J)) ^ 2: NEXT J
1760 B(17) = S / O(17): S = 0: O(18) = 0: FOR J = 1 TO X
1770 S = S + Q(J) * L(J) * Y(J): O(18) = O(18) + (Q(J) * L(J)) ^ 2: NEXT J
1780 B(18) = S / O(18): S = 0: O(19) = 0: FOR J = 1 TO X
1790 S = S + L(J) * U(J) * Y(J): O(19) = O(19) + (L(J) * U(J)) ^ 2: NEXT J
1800 B(19) = S / O(19): S = 0: O(20) = 0: FOR J = 1 TO X
1810 S = S + L(J) * V(J) * Y(J): O(20) = O(20) + (L(J) * V(J)) ^ 2: NEXT J
940 F(13) = B1: H(13) = C2: F(14) = E1: H(14) = C2: F(15) = E1: H(15) = D2
950 F(16) = C1: H(16) = A2: F(17) = C1: H(17) = C2: F(18) = C1: H(18) = E2
960 F(19) = C1: H(19) = D2: F(20) = C1: H(20) = B2: F(21) = D1: H(21) = A2
970 F(22) = D1: H(22) = C2: F(23) = D1: H(23) = E2: F(24) = D1: H(24) = D2
980 F(25) = D1: H(25) = B2: GOTO 1130
1130 PRINT "IF I0=6 GOTO 40-НАЧАЛО"
1135 PRINT "IF I0=7 GOTO 1160-ПРОДОЛЖЕНИЕ"
1140 INPUT I0: IF I0 = 6 GOTO 40
1150 IF I0 = 7 GOTO 1160
1160 PRINT "ВВОД ВЕЛИЧИН ПОКАЗАТЕЛЕЙ ПО ПЛАНУ Y(J) "
1161 PRINT #1, "ВЕЛИЧИНЫ ПОКАЗАТЕЛЕЙ В СООТВЕТСТВИИ С ПЛАНОМ Y(J)"
1165 FOR J = 1 TO X
1166 PRINT "Y("; J; ")": INPUT Y(J)
1170 PRINT #1, "Y("; J; ")="; Y(J): NEXT J
1180 PRINT "IF I0=1 GOTO 1160-ПОВТОРЕНИЕ ВВОДА ПОКАЗАТЕЛЕЙ"
1185 PRINT "IF I0=2 GOTO 1230-ПРОДОЛЖЕНИЕ"
1190 PRINT "ВВОД I0": INPUT I0: IF I0 = 1 GOTO 1160
1200 IF I0 = 2 GOTO 1230
1230 IF X = 5 GOTO 1330
1290 IF X = 25 GOTO 1390
1330 GOSUB 4290: GOTO 1410
1390 GOSUB 4290: GOSUB 4340: GOTO 1410
1410 S = 0: O(1) = 0: FOR J = 1 TO X: S = S + Y(J): O(1) = O(1) + 1: NEXT J
1420 B(1) = S / O(1): S = 0: O(2) = 0: FOR J = 1 TO X: S = S + I(J) * Y(J)
1430 O(2) = O(2) + I(J) ^ 2: NEXT J: B(2) = S / O(2): S = 0: O(3) = 0
1440 FOR J = 1 TO X: S = S + K(J) * Y(J): O(3) = O(3) + K(J) ^ 2: NEXT J
1450 B(3) = S / O(3)
1470 IF X = 5 GOTO 2000
1480 S = 0: O(4) = 0: FOR J = 1 TO X: S = S + P(J) * Y(J)
1490 O(4) = O(4) + P(J) ^ 2: NEXT J: B(4) = S / O(4): S = 0: O(5) = 0
1500 FOR J = 1 TO X: S = S + I(J) * P(J) * Y(J): O(5) = O(5) + (I(J) * P(J)) ^ 2
1510 NEXT J: B(5) = S / O(5): S = 0: O(6) = 0: FOR J = 1 TO X
1520 S = S + Q(J) * Y(J): O(6) = O(6) + Q(J) ^ 2: NEXT J: B(6) = S / O(6)
1530 S = 0: O(7) = 0: FOR J = 1 TO X: S = S + I(J) * Q(J) * Y(J)
1540 O(7) = O(7) + (I(J) * Q(J)) ^ 2: NEXT J: B(7) = S / O(7): S = 0
1550 O(8) = 0: FOR J = 1 TO X: S = S + P(J) * K(J) * Y(J)
1560 O(8) = O(8) + (P(J) * K(J)) ^ 2: NEXT J: B(8) = S / O(8): S = 0: O(9) = 0
1570 FOR J = 1 TO X: S = S + K(J) * Q(J) * Y(J): O(9) = O(9) + (K(J) * Q(J)) ^ 2
1580 NEXT J: B(9) = S / O(9)
1600 S = 0: O(10) = 0: FOR J = 1 TO X: S = S + U(J) * Y(J): O(10) = O(10) + U(J) ^ 2
1610 NEXT J: B(10) = S / O(10): S = 0: O(11) = 0: FOR J = 1 TO X
1620 S = S + I(J) * U(J) * Y(J): O(11) = O(11) + (I(J) * U(J)) ^ 2: NEXT J
1630 B(11) = S / O(11): S = 0: O(12) = 0: FOR J = 1 TO X: S = S + K(J) * U(J) * Y(J)
1640 O(12) = O(12) + (K(J) * U(J)) ^ 2: NEXT J: B(12) = S / O(12)
1670 S = 0: O(13) = 0: FOR J = 1 TO X: S = S + V(J) * Y(J)
1680 O(13) = O(13) + V(J) ^ 2: NEXT J: B(13) = S / O(13): S = 0: O(14) = 0
1690 FOR J = 1 TO X: S = S + I(J) * V(J) * Y(J): O(14) = O(14) + (I(J) * V(J)) ^ 2
1700 NEXT J: B(14) = S / O(14): S = 0: O(15) = 0: FOR J = 1 TO X
1710 S = S + K(J) * V(J) * Y(J): O(15) = O(15) + (K(J) * V(J)) ^ 2: NEXT J
1720 B(15) = S / O(15)
1730 S = 0: O(16) = 0: FOR J = 1 TO X: S = S + L(J) * Y(J): O(16) = O(16) + L(J) ^ 2
1740 NEXT J: B(16) = S / O(16): S = 0: O(17) = 0: FOR J = 1 TO X
1750 S = S + P(J) * L(J) * Y(J): O(17) = O(17) + (P(J) * L(J)) ^ 2: NEXT J
1760 B(17) = S / O(17): S = 0: O(18) = 0: FOR J = 1 TO X
1770 S = S + Q(J) * L(J) * Y(J): O(18) = O(18) + (Q(J) * L(J)) ^ 2: NEXT J
1780 B(18) = S / O(18): S = 0: O(19) = 0: FOR J = 1 TO X
1790 S = S + L(J) * U(J) * Y(J): O(19) = O(19) + (L(J) * U(J)) ^ 2: NEXT J

1800 B(19) = S / O(19): S = 0: O(20) = 0: FOR J = 1 TO X
1810 S = S + L(J) * V(J) * Y(J): O(20) = O(20) + (L(J) * V(J)) ^ 2: NEXT J



                                                  211