Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape21a_acorn_eu_1991_april.wav » Kam-2
Kam-2
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_tape21a_acorn_eu_1991_april.wav |
Filename: | Kam-2 |
Read OK: | ✔ |
File size: | 02BC bytes |
Load address: | FFFF1900 |
Exec address: | FFFF8023 |
Duplicates
There are 3 duplicate copies of this file in the archive:
- AEW website » mu » mu_5_25_discs_Micro_User_09_02_D-MU09_02.ssd » Kam-2
- AEW website » mu » mu_Micro_User_09_02_MU9-2_B.uef » Kam-2
- Personal collection » Acorn tapes » Electron_User » Electron_User_tape21b_acorn_eu_1991_april.wav » Kam-2
- Personal collection » Acorn tapes » Electron_User » Electron_User_tape21a_acorn_eu_1991_april.wav » Kam-2
File contents
10REM > <basicsave$dir>.KAM_ATRAC2 20PRINT"Strange Attractors 1" 30PRINT"The KAM attractor" 40PRINT"By Mike Cook" 50PRINT"Press the space bar to get onto the next orbit" 60REPEAT 70INPUT"Enter a value for A (1.1 to 1.7) ",A 80MODE0 90CH%=0 100orbit=0 110PRINT TAB(0,31);"The KAM attractor By Mike Cook A = ";A; 111PRINT TAB(55,31);"Space bar for next orbit"; 120sinA=SIN(A) 130cosA=COS(A) 140C%=0 150REPEAT 160orbit=orbit+0.1 170PRINT TAB(0,0);"Orbit value ";orbit;SPC(6) 180C%=C%+1 200U=orbit/3 210V=orbit/3 220REPEAT 230IF ABS(U)<1E6 AND ABS(V)<1E6 THEN PLOT 69,(U*640)+640,(V*512)+512 ELSE PRINT TAB(0,0);"Chaos achieved ";SPC(6):CH%=1:GOTO 270 240X=U*cosA-(V-U*U)*sinA 250Y=U*sinA+(V-U*U)*cosA 260U=X:V=Y 270UNTIL INKEY(-99) 280REPEAT 290UNTIL NOT(INKEY(-99)) 300UNTIL CH%=1 310PRINT TAB(0,0); 320*FX21,0 330UNTIL FALSE
"� > <basicsave$dir>.KAM_ATRAC2 �"Strange Attractors 1" �"The KAM attractor" (�"By Mike Cook" 25�"Press the space bar to get onto the next orbit" <� F*�"Enter a value for A (1.1 to 1.7) ",A P�0 Z CH%=0 dorbit=0 n5� �0,31);"The KAM attractor By Mike Cook A = ";A; o)� �55,31);"Space bar for next orbit"; x sinA=�(A) � cosA=�(A) �C%=0 �� �orbit=orbit+0.1 �%� �0,0);"Orbit value ";orbit;�(6) �C%=C%+1 � U=orbit/3 � V=orbit/3 �� �g� �(U)<1E6 � �(V)<1E6 � � 69,(U*640)+640,(V*512)+512 � � �0,0);"Chaos achieved ";�(6):CH%=1:� �TNA �X=U*cosA-(V-U*U)*sinA �Y=U*sinA+(V-U*U)*cosA U=X:V=Y � �(-99) � "� �(�(-99)) ,� CH%=1 6� �0,0); @*FX21,0 J� � �
00000000 0d 00 0a 22 f4 20 3e 20 3c 62 61 73 69 63 73 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 32 0d 00 14 1b f1 22 53 74 72 61 6e 67 65 20 |C2....."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 35 f1 22 50 72 |ke Cook"..25."Pr| 00000070 65 73 73 20 74 68 65 20 73 70 61 63 65 20 62 61 |ess the space ba| 00000080 72 20 74 6f 20 67 65 74 20 6f 6e 74 6f 20 74 68 |r to get onto th| 00000090 65 20 6e 65 78 74 20 6f 72 62 69 74 22 0d 00 3c |e next orbit"..<| 000000a0 05 f5 0d 00 46 2a e8 22 45 6e 74 65 72 20 61 20 |....F*."Enter a | 000000b0 76 61 6c 75 65 20 66 6f 72 20 41 20 28 31 2e 31 |value for A (1.1| 000000c0 20 74 6f 20 31 2e 37 29 20 22 2c 41 0d 00 50 06 | to 1.7) ",A..P.| 000000d0 eb 30 0d 00 5a 09 43 48 25 3d 30 0d 00 64 0b 6f |.0..Z.CH%=0..d.o| 000000e0 72 62 69 74 3d 30 0d 00 6e 35 f1 20 8a 30 2c 33 |rbit=0..n5. .0,3| 000000f0 31 29 3b 22 54 68 65 20 4b 41 4d 20 61 74 74 72 |1);"The KAM attr| 00000100 61 63 74 6f 72 20 42 79 20 4d 69 6b 65 20 43 6f |actor By Mike Co| 00000110 6f 6b 20 41 20 3d 20 22 3b 41 3b 0d 00 6f 29 f1 |ok A = ";A;..o).| 00000120 20 8a 35 35 2c 33 31 29 3b 22 53 70 61 63 65 20 | .55,31);"Space | 00000130 62 61 72 20 66 6f 72 20 6e 65 78 74 20 6f 72 62 |bar for next orb| 00000140 69 74 22 3b 0d 00 78 0d 73 69 6e 41 3d b5 28 41 |it";..x.sinA=.(A| 00000150 29 0d 00 82 0d 63 6f 73 41 3d 9b 28 41 29 0d 00 |)....cosA=.(A)..| 00000160 8c 08 43 25 3d 30 0d 00 96 05 f5 0d 00 a0 13 6f |..C%=0.........o| 00000170 72 62 69 74 3d 6f 72 62 69 74 2b 30 2e 31 0d 00 |rbit=orbit+0.1..| 00000180 aa 25 f1 20 8a 30 2c 30 29 3b 22 4f 72 62 69 74 |.%. .0,0);"Orbit| 00000190 20 76 61 6c 75 65 20 22 3b 6f 72 62 69 74 3b 89 | value ";orbit;.| 000001a0 28 36 29 0d 00 b4 0b 43 25 3d 43 25 2b 31 0d 00 |(6)....C%=C%+1..| 000001b0 c8 0d 55 3d 6f 72 62 69 74 2f 33 0d 00 d2 0d 56 |..U=orbit/3....V| 000001c0 3d 6f 72 62 69 74 2f 33 0d 00 dc 05 f5 0d 00 e6 |=orbit/3........| 000001d0 67 e7 20 94 28 55 29 3c 31 45 36 20 80 20 20 94 |g. .(U)<1E6 . .| 000001e0 28 56 29 3c 31 45 36 20 8c 20 f0 20 36 39 2c 28 |(V)<1E6 . . 69,(| 000001f0 55 2a 36 34 30 29 2b 36 34 30 2c 28 56 2a 35 31 |U*640)+640,(V*51| 00000200 32 29 2b 35 31 32 20 8b 20 f1 20 8a 30 2c 30 29 |2)+512 . . .0,0)| 00000210 3b 22 43 68 61 6f 73 20 61 63 68 69 65 76 65 64 |;"Chaos achieved| 00000220 20 22 3b 89 28 36 29 3a 43 48 25 3d 31 3a e5 20 | ";.(6):CH%=1:. | 00000230 8d 54 4e 41 0d 00 f0 19 58 3d 55 2a 63 6f 73 41 |.TNA....X=U*cosA| 00000240 2d 28 56 2d 55 2a 55 29 2a 73 69 6e 41 0d 00 fa |-(V-U*U)*sinA...| 00000250 19 59 3d 55 2a 73 69 6e 41 2b 28 56 2d 55 2a 55 |.Y=U*sinA+(V-U*U| 00000260 29 2a 63 6f 73 41 0d 01 04 0b 55 3d 58 3a 56 3d |)*cosA....U=X:V=| 00000270 59 0d 01 0e 0c fd 20 a6 28 2d 39 39 29 0d 01 18 |Y..... .(-99)...| 00000280 05 f5 0d 01 22 0f fd 20 ac 28 a6 28 2d 39 39 29 |....".. .(.(-99)| 00000290 29 0d 01 2c 0b fd 20 43 48 25 3d 31 0d 01 36 0c |)..,.. CH%=1..6.| 000002a0 f1 20 8a 30 2c 30 29 3b 0d 01 40 0b 2a 46 58 32 |. .0,0);..@.*FX2| 000002b0 31 2c 30 0d 01 4a 07 fd 20 a3 0d ff |1,0..J.. ...| 000002bc