home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 47
/
047.d81
/
equations.64
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
1KB
|
58 lines
0 ifa=.thena=1:load"plot.ml",8,1
1 poke53280,.:poke53281,.:print"[147] [158]dynamic equations"
2 printtab(13)"by john iovine":print" [154](1[154]) use chaos # 1"
3 print" (2[154]) use chaos # 2"
4 print" (3[154]) quit"
5 geta$:ifa$<"1"ora$>"3"then5
6 ifa$="1"then20
7 ifa$="2"then310
8 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
9 ifer<>63thenend
10 goto60000
11 rem c64chaos1
20 print"input growth rate factor:";:le=5:gosub60500:r=val(c$)
30 g=peek(53272):b=peek(56576):k=peek(56578)
40 sys49152:sys49185:poke2,1:sys49209
50 x=.10:xx=.1:y=1
60 x=(1+r)*x-(r*x^2)
70 poke253,yand255:poke254,y/256
80 poke255,x*100
90 sys49278
100 xx=x
110 y=y+3:ify>320then600
120 goto60
300 remc64chaos2
310 sys49152:sys49185
320 poke2,1:y=1:sys49209
330 r=1.99
340 x=.25
350 fori=1to275
360 x=(1+r)*x-(r*x^2)
370 next
380 fori=1to200
390 x=(1+r)*x-(r*x^2)
400 poke253,yand255:poke254,y/256
410 poke255,x*110:sys49278
420 r=r+.0035
430 y=y+1
440 ify>289then600
450 goto350
600 poke198,.
610 a=peek(203):ifa=64then610
700 poke53265,peek(53265)and223
710 poke53272,g:poke56576,b:poke56578,k
720 run1
60000 print"[144]load"chr$(34)"hello connect"chr$(34)",8"
60010 print"run[145][145][145][145][145][145][145][145]"
60020 poke631,13:poke632,13:poke198,2:end
60500 c$="":poke198,.:print"[164]";
60510 fora=1tole+1
60520 geta$:ifa$=""then60520
60530 ifa$=chr$(13)thenprint"[157] ":return
60540 ifa$=chr$(20)anda>1thenprint"[157][157] [157][157][164]";:a=a-1:c$=left$(c$,a-1):goto60520
60550 if(a=le+1)then60520
60560 if((a$>="0")and(a$<="9"))then60595
60570 if(a$=".")then60595
60590 goto60520
60595 print"[157]"a$;:poke212,.:print"[164]";:c$=c$+a$:next