ö*NAME logarithms öî … ï 7: ï 12: ï 7: à öõ ""öhd%=0:mins%=0:secs%=0:eflag%=0 %$öwhd%=0:wmins%=0:wsecs%=0:wleft%=0 &öthe_log=0:alog=0:wlog=0 *öò_box_window ,öè Š17,5) "" whd% .öè Š28,5) "" wmins% 0öè Š37,5) "" wsecs% 2öè Š46,5) "" wlog 4öwleft%=whd%+wmins%+wsecs% +6öç (wleft%=0) € ¬(wlog=0) Œ ò_do_antilog '8öç ¬(wleft%=0) € (wlog=0) Œ ò_do_log *:öç (wleft%=0) € (wlog=0) Œ ò_both_empty +<öç ¬(wleft%=0) € ¬(wlog=0) Œ ò_both_full >öò_wait_for_operator @öý £ Döà JöÝ ò_wait_for_operator Löô ;Nöô Let the operator read the screen. In case double byte )Pöô codes come in use the GET operator. Röô Töõ ý ¦(0)=-1 Vöô Xöï 1,51,64,32,32 Zöô \öwleft%=¥ ^öç wleft%=0 Œ wleft%=¥ `öô böá höÝ ò_both_empty jöô /löô None of the four input areas is non-zero. nöô ;pöñ Š45,0);"* * * * * * * * * N O T E * * * * * * * *"; ;röñ Š45,1);"* A temporal value of zeroes has no valid *"; ÷ô 5@÷ô eflag% the_log alog hd% mins% secs% B÷ô D÷Ý ò_box_window F÷ô H÷ï 12 J÷ô 9L÷ô Define a Z88 box for the logarithm programs to use. N÷ô 5P÷ï 1,51,64,102,32,1,50,42,67,1,50,42,69,1,50,42,70 +R÷ñ Š10,1);" A S T R O L O G I C A L "; %T÷ñ Š37,1);" L O G A R I T H M S "; #V÷ï 1,50,88,102,1,50,42,74:ñ "C"; )X÷ï 1,50,42,74:ñ " 1991, L.J.DEVANEY."; 5Z÷ï 1,51,64,102,34,1,50,42,73,1,50,42,69,1,50,42,76 \÷ñ " version 1.00"; ^÷ñ Š13,3);"Hours/Degs"; `÷ñ Š25,3);"Minutes"; b÷ñ Š34,3);"Seconds"; d÷ñ Š46,3);"Logarithm"; f÷ñ Š79,6);"ESC to exit."; h÷ô j÷á !p÷Ý ò_take_log(hd%,mins%,secs%) r÷ô Bt÷ô Logarithms for finding the proportions of time and/or angle. Cv÷ô Used with astrology calculations. Minimum input is one second 9x÷ô of time/arc. Maximum input is 24.00.00, hms or dms. z÷ô !|÷ô Version 1.00 for Z88 Basic. ~÷ô +€÷ô eflag% an error/success indicator. A‚÷ô -1 shows too small or too large an argument given. 0„÷ô the log for too small is 10.0. 0†÷ô the log for too large is 0.0. $ˆ÷ô 0 shows all is well. 4Š÷ô +1 shows an incorrect argument given. AŒ÷ô the_log the result required, in the form of Raphael's log. !Ž÷ô hd% the degrees/hours. �÷ô mins% the minutes. ’÷ô secs% the seconds. ”÷ô -–÷eflag%=0:the_log=0:ô presume all is well. *˜÷ç (hd%<0) „ (hd%>24) Œ eflag%=1: á *š÷ç (mins%<0) „ (mins%>59) Œ eflag%=1: á *œ÷ç (secs%<0) „ (secs%>59) Œ eflag%=1: á ž÷ô 5 ÷ç (hd%+mins%+secs%)=0 Œ eflag%=-1:the_log=10.0: á ¢÷ô 0¤÷ô proceed with the scaling to a real number. ¦÷ô ¨÷ê a !ª÷a=hd%+(mins%/60)+(secs%/3600) ¬÷ô ®÷ç (a>24.0) Œ eflag%=-1: á °÷ô ²÷the_log=«(24)-«(a) ´÷ô ¶÷á ¼÷Ý ò_give_log(alog) ¾÷ô BÀ÷ô Logarithms for finding the proportions of time and/or angle. BÂ÷ô Used with astrology calculations. Maximum input is about 4.5 AÄ÷ô and the minimum zero. Output values range from 1 second to .Æ÷ô 24 hours/degrees, in 1 second intervals. È÷ô !Ê÷ô Version 1.00 for Z88 Basic. Ì÷ô +Î÷ô eflag% an error/success indicator. AÐ÷ô -1 shows too small or too large an argument given. 6Ò÷ô the result for too small is 24.00.00 6Ô÷ô the result for too large is 0.00.00 $Ö÷ô 0 shows all is well. 4Ø÷ô +1 shows an incorrect argument given. 7Ú÷ô alog the input, in the form of Raphael's log. *Ü÷ô hd% the degrees/hours required. $Þ÷ô mins% the minutes required. $à÷ô secs% the seconds required. â÷ô 9ä÷eflag%=0:hd%=0:mins%=0:secs%=0:ô presume all is well. æ÷ç (alog<0) Œ eflag%=1: á è÷ô ê÷ç (alog>5) Œ eflag%=-1: á ì÷ô 0î÷ô proceed with the scaling to a real number. ð÷ô ò÷ê a,b%,c ô÷a=10^(«(24)-alog) ö÷ô $ø÷ç (a>24.0) Œ eflag%=-1:hd%=24: á ú÷ô ü÷b%=¨(a):a=a-b%:hd%=b% þ÷ô "øc=a*60:b%=¨(c):a=c-b%:mins%=b% øô !øc=(a*60)+0.5:b%=¨(c):secs%=b% øô 'øç secs%>59 Œ secs%=0: mins%=mins%+1  øô # øç mins%>59 Œ mins%=0: hd%=hd%+1 øô øá ÿÿ