Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_15_03.adf » !AcornAns_AcornAns » Flocking/Basic/Old/Flock1

Flocking/Basic/Old/Flock1

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_15_03.adf » !AcornAns_AcornAns
Filename: Flocking/Basic/Old/Flock1
Read OK:
File size: 07BD bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
   10REM Not flocking working
   20:
   30n%=16
   40G%=8
   50:
   60RC%=40    :REM collision distance
   70RM%=50    :REM velocity matching distance
   80RL%=160   :REM local distance
   90:
  100RL2%=RL%*RL%
  110DIM x(n%-1), y(n%-1)
  120DIM xn(n%-1), yn(n%-1)
  130DIM vx(n%-1), vy(n%-1)
  140DIM vxn(n%-1), vyn(n%-1)
  150DIM dm(n%-1), im%(n%-1)
  160DIM ax(n%-1), ay(n%-1)
  170DIM avx(n%-1), avy(n%-1)
  180DIM ac%(n%-1)
  190:
  200MODE 18
  210ORIGIN 640,512
  220:
  230p%=500
  240v%=G%*2
  250FOR i%=0 TO n%-1
  260 x(i%)=RND(p%)-p%/2
  270 y(i%)=RND(p%)-p%/2
  280 vx(i%)=RND(1)*v%
  290 vy(i%)=RND(1)*v%-v%/2
  300NEXT
  310:
  320REPEAT
  330 WAIT
  340 CLS
  350 FOR i%=0 TO n%-1
  360  PLOT 69,x(i%),y(i%)
  370 NEXT
  380 PROCmove
  390 FOR i%=0 TO n%-1
  400  x(i%)=xn(i%)
  410  y(i%)=yn(i%)
  420  vx(i%)=vxn(i%)
  430  vy(i%)=vyn(i%)
  440 NEXT
  450UNTIL 0
  460:
  470END
  480:
  490:
  500DEF PROCmove
  510FOR i%=0 TO n%-1
  520 dm(i%)=1E20
  530 ax(i%)=x(i%)
  540 ay(i%)=y(i%)
  550 avx(i%)=vx(i%)
  560 avy(i%)=vy(i%)
  570 ac%(i%)=1
  580NEXT
  590FOR i%=0 TO n%-2
  600 FOR j%=i%+1 TO n%-1
  610  d = (x(i%)-x(j%))*(x(i%)-x(j%)) + (y(i%)-y(j%))*(y(i%)-y(j%))
  620  IF d<dm(i%) dm(i%)=d:im%(i%)=j%
  630  IF d<dm(j%) dm(j%)=d:im%(j%)=i%
  640  IF d<RL2% THEN
  650   ax(i%)+=x(j%):ay(i%)+=y(j%):avx(i%)+=vx(j%):avy(i%)+=vy(j%):ac%(i%)+=1
  660   ax(j%)+=x(i%):ay(j%)+=y(i%):avx(j%)+=vx(i%):avy(j%)+=vy(i%):ac%(j%)+=1
  670  ENDIF
  680 NEXT
  690NEXT
  700FOR i%=0 TO n%-1
  710 IF dm(i%)>=RL2% THEN
  720  ax(i%)+=x(im%(i%)):ay(i%)+=y(im%(i%))
  730  avx(i%)+=vx(im%(i%)):avy(i%)+=vy(im%(i%))
  740  ac%(i%)+=1
  750 ENDIF
  760 ax(i%)=ax(i%)/ac%(i%)
  770 ay(i%)=ay(i%)/ac%(i%)
  780 avx(i%)=avx(i%)/ac%(i%)
  790 avy(i%)=avy(i%)/ac%(i%)
  800 dc = SQR( (ax(i%)-x(i%))*(ax(i%)-x(i%)) + (ay(i%)-y(i%))*(ay(i%)-y(i%)) ):IF dc<0.001 dc=0.001
  810 a=(ax(i%)-x(i%))/dc
  820 b=(ay(i%)-y(i%))/dc
  830 dm(i%)=(SQR dm(i%))
  840 d=dm(i%):IF d<0.001 d=0.001
  850 u=(x(im%(i%))-x(i%))/d
  860 v=(y(im%(i%))-y(i%))/d
  870 IF d<RC% THEN
  880  vxn(i%)=-u*G%
  890  vyn(i%)=-v*G%
  900 ELSE
  910  IF d<RM% THEN
  920   vxn(i%)=avx(i%)
  930   vyn(i%)=avy(i%)
  940  ELSE
  950   vxn(i%)=a*G%
  960   vyn(i%)=b*G%
  970  ENDIF
  980 ENDIF
  990 xn(i%)=x(i%)+vxn(i%)
 1000 yn(i%)=y(i%)+vyn(i%)
 1010NEXT
 1020ENDPROC

� Not flocking working
:
	n%=16
(G%=8
2:
<#RC%=40    :� collision distance
F+RM%=50    :� velocity matching distance
PRL%=160   :� local distance
Z:
dRL2%=RL%*RL%
n� x(n%-1), y(n%-1)
x� xn(n%-1), yn(n%-1)
�� vx(n%-1), vy(n%-1)
�� vxn(n%-1), vyn(n%-1)
�� dm(n%-1), im%(n%-1)
�� ax(n%-1), ay(n%-1)
�� avx(n%-1), avy(n%-1)
�� ac%(n%-1)
�:
�� 18
�ȑ 640,512
�:
�
p%=500
�v%=G%*2
�� i%=0 � n%-1
 x(i%)=�(p%)-p%/2
 y(i%)=�(p%)-p%/2
 vx(i%)=�(1)*v%
" vy(i%)=�(1)*v%-v%/2
,�
6:
@�
J Ȗ
T �
^ � i%=0 � n%-1
h  � 69,x(i%),y(i%)
r �
|
 �move
� � i%=0 � n%-1
�  x(i%)=xn(i%)
�  y(i%)=yn(i%)
�  vx(i%)=vxn(i%)
�  vy(i%)=vyn(i%)
� �
�� 0
�:
��
�:
�:
�� �move
�� i%=0 � n%-1
 dm(i%)=1E20
 ax(i%)=x(i%)
 ay(i%)=y(i%)
& avx(i%)=vx(i%)
0 avy(i%)=vy(i%)
: ac%(i%)=1
D�
N� i%=0 � n%-2
X � j%=i%+1 � n%-1
bC  d = (x(i%)-x(j%))*(x(i%)-x(j%)) + (y(i%)-y(j%))*(y(i%)-y(j%))
l$  � d<dm(i%) dm(i%)=d:im%(i%)=j%
v$  � d<dm(j%) dm(j%)=d:im%(j%)=i%
�  � d<RL2% �
�M   ax(i%)+=x(j%):ay(i%)+=y(j%):avx(i%)+=vx(j%):avy(i%)+=vy(j%):ac%(i%)+=1
�M   ax(j%)+=x(i%):ay(j%)+=y(i%):avx(j%)+=vx(i%):avy(j%)+=vy(i%):ac%(j%)+=1
�  �
� �
��
�� i%=0 � n%-1
� � dm(i%)>=RL2% �
�+  ax(i%)+=x(im%(i%)):ay(i%)+=y(im%(i%))
�/  avx(i%)+=vx(im%(i%)):avy(i%)+=vy(im%(i%))
�  ac%(i%)+=1
� �
� ax(i%)=ax(i%)/ac%(i%)
 ay(i%)=ay(i%)/ac%(i%)
 avx(i%)=avx(i%)/ac%(i%)
 avy(i%)=avy(i%)/ac%(i%)
 ` dc = �( (ax(i%)-x(i%))*(ax(i%)-x(i%)) + (ay(i%)-y(i%))*(ay(i%)-y(i%)) ):� dc<0.001 dc=0.001
* a=(ax(i%)-x(i%))/dc
4 b=(ay(i%)-y(i%))/dc
> dm(i%)=(� dm(i%))
H d=dm(i%):� d<0.001 d=0.001
R u=(x(im%(i%))-x(i%))/d
\ v=(y(im%(i%))-y(i%))/d
f � d<RC% �
p  vxn(i%)=-u*G%
z  vyn(i%)=-v*G%
� �
�  � d<RM% �
�   vxn(i%)=avx(i%)
�   vyn(i%)=avy(i%)
�  �
�   vxn(i%)=a*G%
�   vyn(i%)=b*G%
�  �
� �
� xn(i%)=x(i%)+vxn(i%)
� yn(i%)=y(i%)+vyn(i%)
��
��
�
00000000  0d 00 0a 1a f4 20 4e 6f  74 20 66 6c 6f 63 6b 69  |..... Not flocki|
00000010  6e 67 20 77 6f 72 6b 69  6e 67 0d 00 14 05 3a 0d  |ng working....:.|
00000020  00 1e 09 6e 25 3d 31 36  0d 00 28 08 47 25 3d 38  |...n%=16..(.G%=8|
00000030  0d 00 32 05 3a 0d 00 3c  23 52 43 25 3d 34 30 20  |..2.:..<#RC%=40 |
00000040  20 20 20 3a f4 20 63 6f  6c 6c 69 73 69 6f 6e 20  |   :. collision |
00000050  64 69 73 74 61 6e 63 65  0d 00 46 2b 52 4d 25 3d  |distance..F+RM%=|
00000060  35 30 20 20 20 20 3a f4  20 76 65 6c 6f 63 69 74  |50    :. velocit|
00000070  79 20 6d 61 74 63 68 69  6e 67 20 64 69 73 74 61  |y matching dista|
00000080  6e 63 65 0d 00 50 1f 52  4c 25 3d 31 36 30 20 20  |nce..P.RL%=160  |
00000090  20 3a f4 20 6c 6f 63 61  6c 20 64 69 73 74 61 6e  | :. local distan|
000000a0  63 65 0d 00 5a 05 3a 0d  00 64 10 52 4c 32 25 3d  |ce..Z.:..d.RL2%=|
000000b0  52 4c 25 2a 52 4c 25 0d  00 6e 16 de 20 78 28 6e  |RL%*RL%..n.. x(n|
000000c0  25 2d 31 29 2c 20 79 28  6e 25 2d 31 29 0d 00 78  |%-1), y(n%-1)..x|
000000d0  18 de 20 78 6e 28 6e 25  2d 31 29 2c 20 79 6e 28  |.. xn(n%-1), yn(|
000000e0  6e 25 2d 31 29 0d 00 82  18 de 20 76 78 28 6e 25  |n%-1)..... vx(n%|
000000f0  2d 31 29 2c 20 76 79 28  6e 25 2d 31 29 0d 00 8c  |-1), vy(n%-1)...|
00000100  1a de 20 76 78 6e 28 6e  25 2d 31 29 2c 20 76 79  |.. vxn(n%-1), vy|
00000110  6e 28 6e 25 2d 31 29 0d  00 96 19 de 20 64 6d 28  |n(n%-1)..... dm(|
00000120  6e 25 2d 31 29 2c 20 69  6d 25 28 6e 25 2d 31 29  |n%-1), im%(n%-1)|
00000130  0d 00 a0 18 de 20 61 78  28 6e 25 2d 31 29 2c 20  |..... ax(n%-1), |
00000140  61 79 28 6e 25 2d 31 29  0d 00 aa 1a de 20 61 76  |ay(n%-1)..... av|
00000150  78 28 6e 25 2d 31 29 2c  20 61 76 79 28 6e 25 2d  |x(n%-1), avy(n%-|
00000160  31 29 0d 00 b4 0f de 20  61 63 25 28 6e 25 2d 31  |1)..... ac%(n%-1|
00000170  29 0d 00 be 05 3a 0d 00  c8 08 eb 20 31 38 0d 00  |)....:..... 18..|
00000180  d2 0e c8 91 20 36 34 30  2c 35 31 32 0d 00 dc 05  |.... 640,512....|
00000190  3a 0d 00 e6 0a 70 25 3d  35 30 30 0d 00 f0 0b 76  |:....p%=500....v|
000001a0  25 3d 47 25 2a 32 0d 00  fa 11 e3 20 69 25 3d 30  |%=G%*2..... i%=0|
000001b0  20 b8 20 6e 25 2d 31 0d  01 04 15 20 78 28 69 25  | . n%-1.... x(i%|
000001c0  29 3d b3 28 70 25 29 2d  70 25 2f 32 0d 01 0e 15  |)=.(p%)-p%/2....|
000001d0  20 79 28 69 25 29 3d b3  28 70 25 29 2d 70 25 2f  | y(i%)=.(p%)-p%/|
000001e0  32 0d 01 18 13 20 76 78  28 69 25 29 3d b3 28 31  |2.... vx(i%)=.(1|
000001f0  29 2a 76 25 0d 01 22 18  20 76 79 28 69 25 29 3d  |)*v%..". vy(i%)=|
00000200  b3 28 31 29 2a 76 25 2d  76 25 2f 32 0d 01 2c 05  |.(1)*v%-v%/2..,.|
00000210  ed 0d 01 36 05 3a 0d 01  40 05 f5 0d 01 4a 07 20  |...6.:..@....J. |
00000220  c8 96 0d 01 54 06 20 db  0d 01 5e 12 20 e3 20 69  |....T. ...^. . i|
00000230  25 3d 30 20 b8 20 6e 25  2d 31 0d 01 68 16 20 20  |%=0 . n%-1..h.  |
00000240  f0 20 36 39 2c 78 28 69  25 29 2c 79 28 69 25 29  |. 69,x(i%),y(i%)|
00000250  0d 01 72 06 20 ed 0d 01  7c 0a 20 f2 6d 6f 76 65  |..r. ...|. .move|
00000260  0d 01 86 12 20 e3 20 69  25 3d 30 20 b8 20 6e 25  |.... . i%=0 . n%|
00000270  2d 31 0d 01 90 12 20 20  78 28 69 25 29 3d 78 6e  |-1....  x(i%)=xn|
00000280  28 69 25 29 0d 01 9a 12  20 20 79 28 69 25 29 3d  |(i%)....  y(i%)=|
00000290  79 6e 28 69 25 29 0d 01  a4 14 20 20 76 78 28 69  |yn(i%)....  vx(i|
000002a0  25 29 3d 76 78 6e 28 69  25 29 0d 01 ae 14 20 20  |%)=vxn(i%)....  |
000002b0  76 79 28 69 25 29 3d 76  79 6e 28 69 25 29 0d 01  |vy(i%)=vyn(i%)..|
000002c0  b8 06 20 ed 0d 01 c2 07  fd 20 30 0d 01 cc 05 3a  |.. ...... 0....:|
000002d0  0d 01 d6 05 e0 0d 01 e0  05 3a 0d 01 ea 05 3a 0d  |.........:....:.|
000002e0  01 f4 0b dd 20 f2 6d 6f  76 65 0d 01 fe 11 e3 20  |.... .move..... |
000002f0  69 25 3d 30 20 b8 20 6e  25 2d 31 0d 02 08 10 20  |i%=0 . n%-1.... |
00000300  64 6d 28 69 25 29 3d 31  45 32 30 0d 02 12 11 20  |dm(i%)=1E20.... |
00000310  61 78 28 69 25 29 3d 78  28 69 25 29 0d 02 1c 11  |ax(i%)=x(i%)....|
00000320  20 61 79 28 69 25 29 3d  79 28 69 25 29 0d 02 26  | ay(i%)=y(i%)..&|
00000330  13 20 61 76 78 28 69 25  29 3d 76 78 28 69 25 29  |. avx(i%)=vx(i%)|
00000340  0d 02 30 13 20 61 76 79  28 69 25 29 3d 76 79 28  |..0. avy(i%)=vy(|
00000350  69 25 29 0d 02 3a 0e 20  61 63 25 28 69 25 29 3d  |i%)..:. ac%(i%)=|
00000360  31 0d 02 44 05 ed 0d 02  4e 11 e3 20 69 25 3d 30  |1..D....N.. i%=0|
00000370  20 b8 20 6e 25 2d 32 0d  02 58 15 20 e3 20 6a 25  | . n%-2..X. . j%|
00000380  3d 69 25 2b 31 20 b8 20  6e 25 2d 31 0d 02 62 43  |=i%+1 . n%-1..bC|
00000390  20 20 64 20 3d 20 28 78  28 69 25 29 2d 78 28 6a  |  d = (x(i%)-x(j|
000003a0  25 29 29 2a 28 78 28 69  25 29 2d 78 28 6a 25 29  |%))*(x(i%)-x(j%)|
000003b0  29 20 2b 20 28 79 28 69  25 29 2d 79 28 6a 25 29  |) + (y(i%)-y(j%)|
000003c0  29 2a 28 79 28 69 25 29  2d 79 28 6a 25 29 29 0d  |)*(y(i%)-y(j%)).|
000003d0  02 6c 24 20 20 e7 20 64  3c 64 6d 28 69 25 29 20  |.l$  . d<dm(i%) |
000003e0  64 6d 28 69 25 29 3d 64  3a 69 6d 25 28 69 25 29  |dm(i%)=d:im%(i%)|
000003f0  3d 6a 25 0d 02 76 24 20  20 e7 20 64 3c 64 6d 28  |=j%..v$  . d<dm(|
00000400  6a 25 29 20 64 6d 28 6a  25 29 3d 64 3a 69 6d 25  |j%) dm(j%)=d:im%|
00000410  28 6a 25 29 3d 69 25 0d  02 80 10 20 20 e7 20 64  |(j%)=i%....  . d|
00000420  3c 52 4c 32 25 20 8c 0d  02 8a 4d 20 20 20 61 78  |<RL2% ....M   ax|
00000430  28 69 25 29 2b 3d 78 28  6a 25 29 3a 61 79 28 69  |(i%)+=x(j%):ay(i|
00000440  25 29 2b 3d 79 28 6a 25  29 3a 61 76 78 28 69 25  |%)+=y(j%):avx(i%|
00000450  29 2b 3d 76 78 28 6a 25  29 3a 61 76 79 28 69 25  |)+=vx(j%):avy(i%|
00000460  29 2b 3d 76 79 28 6a 25  29 3a 61 63 25 28 69 25  |)+=vy(j%):ac%(i%|
00000470  29 2b 3d 31 0d 02 94 4d  20 20 20 61 78 28 6a 25  |)+=1...M   ax(j%|
00000480  29 2b 3d 78 28 69 25 29  3a 61 79 28 6a 25 29 2b  |)+=x(i%):ay(j%)+|
00000490  3d 79 28 69 25 29 3a 61  76 78 28 6a 25 29 2b 3d  |=y(i%):avx(j%)+=|
000004a0  76 78 28 69 25 29 3a 61  76 79 28 6a 25 29 2b 3d  |vx(i%):avy(j%)+=|
000004b0  76 79 28 69 25 29 3a 61  63 25 28 6a 25 29 2b 3d  |vy(i%):ac%(j%)+=|
000004c0  31 0d 02 9e 07 20 20 cd  0d 02 a8 06 20 ed 0d 02  |1....  ..... ...|
000004d0  b2 05 ed 0d 02 bc 11 e3  20 69 25 3d 30 20 b8 20  |........ i%=0 . |
000004e0  6e 25 2d 31 0d 02 c6 15  20 e7 20 64 6d 28 69 25  |n%-1.... . dm(i%|
000004f0  29 3e 3d 52 4c 32 25 20  8c 0d 02 d0 2b 20 20 61  |)>=RL2% ....+  a|
00000500  78 28 69 25 29 2b 3d 78  28 69 6d 25 28 69 25 29  |x(i%)+=x(im%(i%)|
00000510  29 3a 61 79 28 69 25 29  2b 3d 79 28 69 6d 25 28  |):ay(i%)+=y(im%(|
00000520  69 25 29 29 0d 02 da 2f  20 20 61 76 78 28 69 25  |i%)).../  avx(i%|
00000530  29 2b 3d 76 78 28 69 6d  25 28 69 25 29 29 3a 61  |)+=vx(im%(i%)):a|
00000540  76 79 28 69 25 29 2b 3d  76 79 28 69 6d 25 28 69  |vy(i%)+=vy(im%(i|
00000550  25 29 29 0d 02 e4 10 20  20 61 63 25 28 69 25 29  |%))....  ac%(i%)|
00000560  2b 3d 31 0d 02 ee 06 20  cd 0d 02 f8 1a 20 61 78  |+=1.... ..... ax|
00000570  28 69 25 29 3d 61 78 28  69 25 29 2f 61 63 25 28  |(i%)=ax(i%)/ac%(|
00000580  69 25 29 0d 03 02 1a 20  61 79 28 69 25 29 3d 61  |i%).... ay(i%)=a|
00000590  79 28 69 25 29 2f 61 63  25 28 69 25 29 0d 03 0c  |y(i%)/ac%(i%)...|
000005a0  1c 20 61 76 78 28 69 25  29 3d 61 76 78 28 69 25  |. avx(i%)=avx(i%|
000005b0  29 2f 61 63 25 28 69 25  29 0d 03 16 1c 20 61 76  |)/ac%(i%).... av|
000005c0  79 28 69 25 29 3d 61 76  79 28 69 25 29 2f 61 63  |y(i%)=avy(i%)/ac|
000005d0  25 28 69 25 29 0d 03 20  60 20 64 63 20 3d 20 b6  |%(i%).. ` dc = .|
000005e0  28 20 28 61 78 28 69 25  29 2d 78 28 69 25 29 29  |( (ax(i%)-x(i%))|
000005f0  2a 28 61 78 28 69 25 29  2d 78 28 69 25 29 29 20  |*(ax(i%)-x(i%)) |
00000600  2b 20 28 61 79 28 69 25  29 2d 79 28 69 25 29 29  |+ (ay(i%)-y(i%))|
00000610  2a 28 61 79 28 69 25 29  2d 79 28 69 25 29 29 20  |*(ay(i%)-y(i%)) |
00000620  29 3a e7 20 64 63 3c 30  2e 30 30 31 20 64 63 3d  |):. dc<0.001 dc=|
00000630  30 2e 30 30 31 0d 03 2a  18 20 61 3d 28 61 78 28  |0.001..*. a=(ax(|
00000640  69 25 29 2d 78 28 69 25  29 29 2f 64 63 0d 03 34  |i%)-x(i%))/dc..4|
00000650  18 20 62 3d 28 61 79 28  69 25 29 2d 79 28 69 25  |. b=(ay(i%)-y(i%|
00000660  29 29 2f 64 63 0d 03 3e  16 20 64 6d 28 69 25 29  |))/dc..>. dm(i%)|
00000670  3d 28 b6 20 64 6d 28 69  25 29 29 0d 03 48 1f 20  |=(. dm(i%))..H. |
00000680  64 3d 64 6d 28 69 25 29  3a e7 20 64 3c 30 2e 30  |d=dm(i%):. d<0.0|
00000690  30 31 20 64 3d 30 2e 30  30 31 0d 03 52 1b 20 75  |01 d=0.001..R. u|
000006a0  3d 28 78 28 69 6d 25 28  69 25 29 29 2d 78 28 69  |=(x(im%(i%))-x(i|
000006b0  25 29 29 2f 64 0d 03 5c  1b 20 76 3d 28 79 28 69  |%))/d..\. v=(y(i|
000006c0  6d 25 28 69 25 29 29 2d  79 28 69 25 29 29 2f 64  |m%(i%))-y(i%))/d|
000006d0  0d 03 66 0e 20 e7 20 64  3c 52 43 25 20 8c 0d 03  |..f. . d<RC% ...|
000006e0  70 13 20 20 76 78 6e 28  69 25 29 3d 2d 75 2a 47  |p.  vxn(i%)=-u*G|
000006f0  25 0d 03 7a 13 20 20 76  79 6e 28 69 25 29 3d 2d  |%..z.  vyn(i%)=-|
00000700  76 2a 47 25 0d 03 84 06  20 cc 0d 03 8e 0f 20 20  |v*G%.... .....  |
00000710  e7 20 64 3c 52 4d 25 20  8c 0d 03 98 16 20 20 20  |. d<RM% .....   |
00000720  76 78 6e 28 69 25 29 3d  61 76 78 28 69 25 29 0d  |vxn(i%)=avx(i%).|
00000730  03 a2 16 20 20 20 76 79  6e 28 69 25 29 3d 61 76  |...   vyn(i%)=av|
00000740  79 28 69 25 29 0d 03 ac  07 20 20 cc 0d 03 b6 13  |y(i%)....  .....|
00000750  20 20 20 76 78 6e 28 69  25 29 3d 61 2a 47 25 0d  |   vxn(i%)=a*G%.|
00000760  03 c0 13 20 20 20 76 79  6e 28 69 25 29 3d 62 2a  |...   vyn(i%)=b*|
00000770  47 25 0d 03 ca 07 20 20  cd 0d 03 d4 06 20 cd 0d  |G%....  ..... ..|
00000780  03 de 19 20 78 6e 28 69  25 29 3d 78 28 69 25 29  |... xn(i%)=x(i%)|
00000790  2b 76 78 6e 28 69 25 29  0d 03 e8 19 20 79 6e 28  |+vxn(i%).... yn(|
000007a0  69 25 29 3d 79 28 69 25  29 2b 76 79 6e 28 69 25  |i%)=y(i%)+vyn(i%|
000007b0  29 0d 03 f2 05 ed 0d 03  fc 05 e1 0d ff           |)............|
000007bd