home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1989 April
/
64er_Magazin_89-04_1989_Markt__Technik_de.d64
/
biorhythmus
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
6KB
|
207 lines
100 rem *******************************
110 rem * *
120 rem * b. jakubaschk martin ruof *
130 rem * neue str.14/1 brunnenstr.17 *
140 rem * 7000 stgt. 10 7238 oberndf. *
150 rem * *
160 rem * 0711/462989 07423/4525 *
170 rem * *
180 rem *******************************
190 :
1000 rem biorhythmische studien
1010 :
1020 if peek(49153)<>169 then load"bio.mc",8,1
1030 sys 49152
1040 poke648,196:poke56576,148:poke53272,19
1050 :
1060 dim ml(12),wt$(6):gosub10510
1070 poke53280,11:poke53281,11
1080 :
1500 print"[147][150] abcdefghijklmno[146][194].[202]akubaschk & [205].[210]uof"
1510 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
1520 print" [199]eben [211]ie bitte [201]hr [199]eburtsdatum an."
1530 print" [199]eburtsdatum :";:gosub11000
1540 gj=j:gosub 10000
1550 print" [211]ie sind an einem ";wt$;" geboren."
1560 print" [196]as julianische [196]atum [201]hres [199]eburts- tages lautet:"jd
1570 jg=jd:gt=t:gm=m
1580 print" [199]eben [211]ie nun das heutige [196]atum an."
1590 print" heutiges [196]atum:";:gosub12000
1600 cf=1
1610 gosub11030
1620 gosub12500 : gosub 10000
1630 print" [200]eute ist ";wt$;"."
1640 print" [202]ulianisches [196]atum:";jd
1650 dd=jd-jg+1
1660 print" [211]ie sind also genau"dd"[212]age alt!"
1670 if(gm=m)and(gt<=t)and(gt>t-3)then1690
1680 goto1700
1690 print" [200]erzlichen [199]l[168]ckwunsch zum [199]eburtstag!"
1700 print" [196]as julianische [196]atum ist eine fort-"
1710 print" laufende [212]agesz[166]hlung, die am ersten"
1720 print" [202]anuar 4713 v.[195]hr. beginnt. [214]erwendet"
1730 print" wird es haupts[166]chlich in der [193]strono-"
1740 print" mie, um [218]eitdifferenzen zu bestimmen."
1750 printtab(30)">>[212][193][211][212][197]<<"
1760 poke198,0:wait198,1
1770 :
2000 print"[147][150] abcdefghijklm[146] - [193][213][211][215][197][210][212][213][206][199]"
2010 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
2020 print" [201]hre [218]yklen stehen bei:"
2030 z1=int((dd/23-int(dd/23))*23+.5)
2040 print"[150] [203] (23-[212]age-[210]hythmus) ="z1
2050 z2=int((dd/28-int(dd/28))*28+.5)
2060 print"[154] [211] (28-[212]age-[210]hythmus) ="z2
2070 z3=int((dd/33-int(dd/33))*33+.5)
2080 print"[153] [199] (33-[212]age-[210]hythmus) ="z3
2090 p1=sin(z1/23*2*(NULL))
2100 if p1>.3 then print"[150] [223] [203] ist in [200]ochlage.";:goto2130
2110 if p1<-.3 then print"[150] [223] [203] ist in [212]ieflage.";:goto2130
2120 print"[150] [223] [203] befindet sich im @bergang.";
2130 print"(";mid$("[=^",sgn(cos(z1/23*2*(NULL)))+2,1)")"
2140 p2=sin(z2/28*2*(NULL))
2150 if p2>.3 then print"[154] [255] [211] ist in [200]ochlage.";:goto2180
2160 if p2<-.3 then print"[154] [255] [211] ist in [212]ieflage.";:goto2180
2170 print"[154] [255] [211] befindet sich im @bergang.";
2180 print"(";mid$("[=^",sgn(cos(z2/28*2*(NULL)))+2,1)")"
2190 p3=sin(z3/33*2*(NULL))
2200 if p3>.3 then print"[153] * [199] ist in [200]ochlage.";:goto2230
2210 if p3<-.3 then print"[153] * [199] ist in [212]ieflage.";:goto2230
2220 print"[153] * [199] befindet sich im @bergang.";
2230 print"(";mid$("[=^",sgn(cos(z3/33*2*(NULL)))+2,1)")"
2240 print" [203] bestimmt den [203][220]rperrhythmus, [211] den"
2250 print" [211]eelen- und [199] den [199]eistesrhythmus."
2260 print" [ und ^ zeigen die [212]endenzen an."
2270 printtab(30)">>[212][193][211][212][197]<<"
2280 poke198,0:wait198,1
2290 :
2500 rem zeichnerische darstellung
2510 :
2520 jm=jd-t
2530 :
2540 print"[147][150] abcdefghijklm[146] - [199][210][193][208][200][201][203]"
2550 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
2560 print"[199]eburtsdatum:";gt"[157]."gm"[157]."gj"("jg")"
2570 print"[193]uswertung f[168]r: "m"[157]/"j+1890"("jm")"
2580 dd=jm-jg
2590 print" [176][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][178][174]"
2600 fori=1to8:print" [221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221]":nexti
2610 print" [171][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][219][179]"
2620 fori=1to8:print" [221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221][221]":nexti
2630 print" 0[221][221][221]0[221][221][221][221]1[221][221][221][221]1[221][221][221][221]2[221][221][221][221]2[221][221][221][221]3[221] "
2640 print" 1[221][221][221]5[221][221][221][221]0[221][221][221][221]5[221][221][221][221]0[221][221][221][221]5[221][221][221][221]0[221] "
2650 print" [150][223]=[203][220]rper [154][255]=[211]eele [153]*=[199]eist ";
2660 for i=1 to 31
2670 v(1)=sin((dd+i)/23*2*(NULL))*8
2680 v(2)=sin((dd+i)/28*2*(NULL))*8
2690 v(3)=sin((dd+i)/33*2*(NULL))*8
2700 for k=1 to 3
2710 poke211,i+3:poke214,13.5-v(k)
2720 sys58640
2730 printmid$("[150][223][154][255][153]*",k*2-1,2)
2740 next k,i : print"";
2750 poke198,0:wait198,1
2760 :
3000 print"[147][150] abcdefghijklm[146] - [200][193][210][205][207][206][201][197][206]"
3010 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
3020 print" [194]ei der [208]artnerberechnung kann auch"
3030 print" das [214]erh[166]ltnis zu [193]rbeitskollegen,"
3040 print" [211]chulkameraden und anderen, eventuell"
3050 print" gleichgeschlechtlichen [205]enschen ausge-"
3060 print" wertet werden."
3070 print" [215]ollen [211]ie eine [208]artnerberechnung?"
3080 geta$:ifa$="n"thenrun
3090 if a$<>"j" then 3080
3100 print" [199]eben [211]ie das [199]eburtsdatum des '[208]art- ners' an."
3110 print" [199]eburtsdatum:";:gosub11000
3120 gosub10000
3130 print" [202]ulianisches [199]eburtsdatum:"jd
3140 dd=abs(jd-jg)
3150 print" [196]ie [193]ltersdifferenz bel[166]uft sich auf":printdd"[212]age."
3160 printtab(30)">>[212][193][211][212][197]<<"
3170 poke198,0:wait198,1
3180 :
3500 print"[147][150] abcdefghijklm[146] - [193][213][211][215][197][210][212][213][206][199]"
3510 print"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
3520 z1=int((dd/23-int(dd/23))*23+.5)
3530 z2=int((dd/28-int(dd/28))*28+.5)
3540 z3=int((dd/33-int(dd/33))*33+.5)
3550 ifz1>11thenz1=23-z1
3560 ifz2>14thenz2=28-z2
3570 ifz3>16thenz3=33-z3
3580 print" [210]hythmusdifferenzen (in [212]agen):"
3590 print"[150] [223] [203]-[210]hythmus:"z1
3600 print"[154] [255] [211]-[210]hythmus:"z2
3610 print"[153] * [199]-[210]hythmus:"z3
3620 print" [208]rozentuale @bereinstimmung:"
3630 p1=int(1000-z1*87+.5)/10+.01
3640 p2=int(1000-z2*71+.5)/10+.01
3650 p3=int(1000-z3*60+.5)/10+.01
3660 print"[150] [223] [203][220]rperlich:"p1"[157][157] % ("mid$("[186][170][169]",p1/34+1,1)")"
3670 print"[154] [255] [211]eelisch :"p2"[157][157] % ("mid$("[186][170][169]",p2/34+1,1)")"
3680 print"[153] * [199]eistig :"p3"[157][157] % ("mid$("[186][170][169]",p3/34+1,1)")"
3690 printtab(30)">>[212][193][211][212][197]<<"
3700 poke198,0:wait198,1
3710 goto3000
3720 :
10000 rem routine zur berechnung des
10010 rem julianischen datums
10020 j=j-1890
10030 jd=2411367+365*j+int((j+1)/4)
10040 jd=jd+ml(m)+t-1
10050 jd=jd+(((j+2)/4=int((j+2)/4))*(m>2))
10060 i=(jd+1)/7 : wt$=wt$((i-int(i))*7+.5)
10070 return
10080 :
10500 rem daten einlesen
10510 for i=1 to 12 : read ml(i) : next
10520 for i=0 to 6 : read wt$(i) : next
10530 return
10540 :
11000 rem datum eingeben
11010 :
11020 cf=1:t=15:m=6:j=1970
11030 gosub11500
11040 geta$
11050 ifcf>1then11090
11060 ifa$="[145]"ora$="+"thent=t+1:ift>31thent=1
11070 ifa$=""ora$="-"thent=t-1:ift<1thent=31
11080 goto11150
11090 ifcf>2then11130
11100 ifa$="[145]"ora$="+"thenm=m+1:ifm>12thenm=1
11110 ifa$=""ora$="-"thenm=m-1:ifm<1thenm=12
11120 goto11150
11130 ifa$="[145]"ora$="+"thenj=j+1:ifj>1999thenj=1890
11140 ifa$=""ora$="-"thenj=j-1:ifj<1890thenj=1999
11150 ifa$=""thencf=cf+1:ifcf>3thencf=1
11160 ifa$="[157]"thencf=cf-1:ifcf<1thencf=3
11170 ifa$=chr$(13)thencf=4:gosub11500:print:return
11180 ifa$=""then11040
11190 goto11030
11200 :
11500 rem datum drucken
11510 print"[154]";:ifcf=1thenprint"";
11520 printspc(2+(t>9));t;
11530 print"[154]";:ifcf=2thenprint"";
11540 printspc(2+(m>9));"[157][157]";m;
11550 print"[154]";:ifcf=3thenprint"";
11560 printspc(5-len(str$(j)));"[157]";j;
11570 print"[157][157][157][157][157][157][157][157][157]..[157][157][157][157][157][157][157][157]";
11580 return
11590 :
12000 rem datum holen
12010 t=peek(828):m=peek(829):j=peek(830)+peek(831)*256
12020 if j>1890 and j<2099 then return
12030 t=1 : m=1 : j=1989
12040 return
12050 :
12500 rem datum speichern
12510 poke828,t:poke829,m
12520 hj=int(j/256):lj=j-hj*256
12530 poke830,lj:poke831,hj
12540 return
12550 :
50000 data 0,31,59,90,120,151,181,212,243,273,304,334
50010 data "[205]ontag","[196]ienstag","[205]ittwoch","[196]onnerstag"
50020 data "[198]reitag","[211]amstag","[211]onntag"