Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape21b_acorn_eu_1991_april.wav » Kam-1

Kam-1

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 » Personal collection » Acorn tapes » Electron_User » Electron_User_tape21b_acorn_eu_1991_april.wav
Filename: Kam-1
Read OK:
File size: 0244 bytes
Load address: FFFF1900
Exec address: FFFF8023
Duplicates

There are 3 duplicate copies of this file in the archive:

File contents
   10REM > <BasicSave$dir>.KAM_ATRACT
   20PRINT"Strange Attractors 1"
   30PRINT"The KAM attractor"
   40PRINT"By Mike Cook"
   50PRINT"A defines the Angle of the orbit in radians"
   60REPEAT
   70INPUT"Enter a value for A about (1.1 to 1.7) ",A
   80MODE0
   90PRINT TAB(0,0);"The KAM attractor By Mike Cook"
  100sinA=SIN(A)
  110cosA=COS(A)
  120C%=0
  130FOR orbit= 0.1 TO 2.5 STEP 0.05
  140C%=C%+1
  150REMGCOL 0,C%
  160U=orbit/3
  170V=orbit/3
  180FOR B%= 1 TO 300
  190IF ABS(U)>1E6 OR ABS(V)>1E6 THEN GOTO 240
  200PLOT 69,(U*640)+640,(V*512)+512
  210X=U*cosA-(V-U*U)*sinA
  220Y=U*sinA+(V-U*U)*cosA
  230U=X:V=Y
  240NEXT
  250NEXT
  260PRINT TAB(0,0)"This is A = ";A;SPC(18)
  270PRINT TAB(0,31);
  280UNTIL FALSE

"� > <BasicSave$dir>.KAM_ATRACT
�"Strange Attractors 1"
�"The KAM attractor"
(�"By Mike Cook"
22�"A defines the Angle of the orbit in radians"
<�
F0�"Enter a value for A about (1.1 to 1.7) ",A
P�0
Z,� �0,0);"The KAM attractor By Mike Cook"
d
sinA=�(A)
n
cosA=�(A)
xC%=0
�� orbit= 0.1 � 2.5 � 0.05
�C%=C%+1
��GCOL 0,C%
�
U=orbit/3
�
V=orbit/3
�� B%= 1 � 300
�"� �(U)>1E6 � �(V)>1E6 � � �dp@
� � 69,(U*640)+640,(V*512)+512
�X=U*cosA-(V-U*U)*sinA
�Y=U*sinA+(V-U*U)*cosA
�U=X:V=Y
��
��
!� �0,0)"This is A = ";A;�(18)

� �0,31);
� �
�
00000000  0d 00 0a 22 f4 20 3e 20  3c 42 61 73 69 63 53 61  |...". > <BasicSa|
00000010  76 65 24 64 69 72 3e 2e  4b 41 4d 5f 41 54 52 41  |ve$dir>.KAM_ATRA|
00000020  43 54 0d 00 14 1b f1 22  53 74 72 61 6e 67 65 20  |CT....."Strange |
00000030  41 74 74 72 61 63 74 6f  72 73 20 31 22 0d 00 1e  |Attractors 1"...|
00000040  18 f1 22 54 68 65 20 4b  41 4d 20 61 74 74 72 61  |.."The KAM attra|
00000050  63 74 6f 72 22 0d 00 28  13 f1 22 42 79 20 4d 69  |ctor"..(.."By Mi|
00000060  6b 65 20 43 6f 6f 6b 22  0d 00 32 32 f1 22 41 20  |ke Cook"..22."A |
00000070  64 65 66 69 6e 65 73 20  74 68 65 20 41 6e 67 6c  |defines the Angl|
00000080  65 20 6f 66 20 74 68 65  20 6f 72 62 69 74 20 69  |e of the orbit i|
00000090  6e 20 72 61 64 69 61 6e  73 22 0d 00 3c 05 f5 0d  |n radians"..<...|
000000a0  00 46 30 e8 22 45 6e 74  65 72 20 61 20 76 61 6c  |.F0."Enter a val|
000000b0  75 65 20 66 6f 72 20 41  20 61 62 6f 75 74 20 28  |ue for A about (|
000000c0  31 2e 31 20 74 6f 20 31  2e 37 29 20 22 2c 41 0d  |1.1 to 1.7) ",A.|
000000d0  00 50 06 eb 30 0d 00 5a  2c f1 20 8a 30 2c 30 29  |.P..0..Z,. .0,0)|
000000e0  3b 22 54 68 65 20 4b 41  4d 20 61 74 74 72 61 63  |;"The KAM attrac|
000000f0  74 6f 72 20 42 79 20 4d  69 6b 65 20 43 6f 6f 6b  |tor By Mike Cook|
00000100  22 0d 00 64 0d 73 69 6e  41 3d b5 28 41 29 0d 00  |"..d.sinA=.(A)..|
00000110  6e 0d 63 6f 73 41 3d 9b  28 41 29 0d 00 78 08 43  |n.cosA=.(A)..x.C|
00000120  25 3d 30 0d 00 82 1d e3  20 6f 72 62 69 74 3d 20  |%=0..... orbit= |
00000130  30 2e 31 20 b8 20 32 2e  35 20 88 20 30 2e 30 35  |0.1 . 2.5 . 0.05|
00000140  0d 00 8c 0b 43 25 3d 43  25 2b 31 0d 00 96 0e f4  |....C%=C%+1.....|
00000150  47 43 4f 4c 20 30 2c 43  25 0d 00 a0 0d 55 3d 6f  |GCOL 0,C%....U=o|
00000160  72 62 69 74 2f 33 0d 00  aa 0d 56 3d 6f 72 62 69  |rbit/3....V=orbi|
00000170  74 2f 33 0d 00 b4 11 e3  20 42 25 3d 20 31 20 b8  |t/3..... B%= 1 .|
00000180  20 33 30 30 0d 00 be 22  e7 20 94 28 55 29 3e 31  | 300...". .(U)>1|
00000190  45 36 20 84 20 94 28 56  29 3e 31 45 36 20 8c 20  |E6 . .(V)>1E6 . |
000001a0  e5 20 8d 64 70 40 0d 00  c8 20 f0 20 36 39 2c 28  |. .dp@... . 69,(|
000001b0  55 2a 36 34 30 29 2b 36  34 30 2c 28 56 2a 35 31  |U*640)+640,(V*51|
000001c0  32 29 2b 35 31 32 0d 00  d2 19 58 3d 55 2a 63 6f  |2)+512....X=U*co|
000001d0  73 41 2d 28 56 2d 55 2a  55 29 2a 73 69 6e 41 0d  |sA-(V-U*U)*sinA.|
000001e0  00 dc 19 59 3d 55 2a 73  69 6e 41 2b 28 56 2d 55  |...Y=U*sinA+(V-U|
000001f0  2a 55 29 2a 63 6f 73 41  0d 00 e6 0b 55 3d 58 3a  |*U)*cosA....U=X:|
00000200  56 3d 59 0d 00 f0 05 ed  0d 00 fa 05 ed 0d 01 04  |V=Y.............|
00000210  21 f1 20 8a 30 2c 30 29  22 54 68 69 73 20 69 73  |!. .0,0)"This is|
00000220  20 41 20 3d 20 22 3b 41  3b 89 28 31 38 29 0d 01  | A = ";A;.(18)..|
00000230  0e 0d f1 20 8a 30 2c 33  31 29 3b 0d 01 18 07 fd  |... .0,31);.....|
00000240  20 a3 0d ff                                       | ...|
00000244
Kam-1.m0
Kam-1.m1
Kam-1.m2
Kam-1.m4
Kam-1.m5