Home » Archimedes archive » Micro User » MU 1991-04.adf » Listings » Kam-1 » Compare

Compare Kam-1 with Kam-1

File: Archimedes archive » Micro User » MU 1991-04.adf » Listings » Kam-1
Compared with: Archimedes archive » Micro User » MU 1991-04.adf » 8bitStuff » Kam-1
Similarity: 97% of bytes duplicated

25 of 28 lines (89.3%) are identical in the two listings. Duplicated Different

Line numbers are ignored when comparing lines, so that renumbered programs still match.

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