Home » Archimedes archive » Micro User » MU 1991-04.adf » Listings » Kam-2 » Compare
Compare Kam-2 with Kam-2
| File: | Archimedes archive » Micro User » MU 1991-04.adf » Listings » Kam-2 |
| Compared with: | Archimedes archive » Micro User » MU 1991-04.adf » 8bitStuff » Kam-2 |
| Similarity: | 72% of bytes duplicated |
30 of 34 lines (89.6%) are identical in the two listings. Duplicated Different
Line numbers are ignored when comparing lines, so that renumbered programs still match.
| Kam-2 | Kam-2 |
|---|---|
| 10REM > <basicsave$dir>.Kam-2 | 10REM > <basicsave$dir>.KAM_ATRAC2 |
| 20PRINT"Strange Attractors 1" | 20PRINT"Strange Attractors 1" |
| 30PRINT"The KAM attractor" | 30PRINT"The KAM attractor" |
| 40PRINT"By Mike Cook" | 40PRINT"By Mike Cook" |
| 50PRINT"Press the space bar to get onto the next orbit" | 50PRINT"Press the space bar to get onto the next orbit" |
| 60REPEAT | 60REPEAT |
| 70INPUT"Enter a value for A (1.1 to 1.7) ",A | 70INPUT"Enter a value for A (1.1 to 1.7) ",A |
| 80MODE15 | 80MODE0 |
| 90CH%=0 | 90CH%=0 |
| 100orbit=0 | 100orbit=0 |
| 110PRINT TAB(0,31);"The KAM attractor By Mike Cook A = ";A; | 110PRINT TAB(0,31);"The KAM attractor By Mike Cook A = ";A; |
| 120PRINT TAB(55,31);"Space bar for next orbit"; | 111PRINT TAB(55,31);"Space bar for next orbit"; |
| 130sinA=SIN(A) | 120sinA=SIN(A) |
| 140cosA=COS(A) | 130cosA=COS(A) |
| 150C%=0 | 140C%=0 |
| 160REPEAT | 150REPEAT |
| 170orbit=orbit+0.1 | 160orbit=orbit+0.1 |
| 180PRINT TAB(0,0);"Orbit value ";orbit;SPC(6) | 170PRINT TAB(0,0);"Orbit value ";orbit;SPC(6) |
| 190C%=C%+1 | 180C%=C%+1 |
| 200GCOL 0,C% | |
| 210U=orbit/3 | 200U=orbit/3 |
| 220V=orbit/3 | 210V=orbit/3 |
| 230REPEAT | 220REPEAT |
| 240IF 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 280 | 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 |
| 250X=U*cosA-(V-U*U)*sinA | 240X=U*cosA-(V-U*U)*sinA |
| 260Y=U*sinA+(V-U*U)*cosA | 250Y=U*sinA+(V-U*U)*cosA |
| 270U=X:V=Y | 260U=X:V=Y |
| 280UNTIL INKEY(-99) | 270UNTIL INKEY(-99) |
| 290REPEAT | 280REPEAT |
| 300UNTIL NOT(INKEY(-99)) | 290UNTIL NOT(INKEY(-99)) |
| 310UNTIL CH%=1 | 300UNTIL CH%=1 |
| 320PRINT TAB(0,0); | 310PRINT TAB(0,0); |
| 330*FX21,0 | 320*FX21,0 |
| 340UNTIL FALSE | 330UNTIL FALSE |
.