Chart Your Biorhythms

Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v2 n1 (Volume 2, Issue 1)
Date: January 1981
Pages: 4

This biorhythm program for 8K ROM machines graphically displays your emotional, intellectual and physical cycles (represented by E, I, and P) based on your birthday. The cycles move in regular sine waves with differing periods, starting at 0 on your birthday. When they cross 0, prepare yourself for critical days.

To use, enter RUN (NL). The program is too large for prompts, so enter this information: month (NL), day (NL) and year (NL) of birth, then month (NL), day (NL), and year (NL) of plot start.

The machine will display a continuously scrolling graph. The center line represents critical times. The left side shows recuperative times; the right side extra energy times. Numbers to the left of display indicate days elapsed from start date. To slow the display, hold the P (for pause) key. Plot dates can range from 1901 to 2099 AD.

 103 DIM N(3)
106 LET P2=2*PI
107 LET W=10
108 LET K=5
109 LET L=7
140 FOR T=1 TO 2
145 INPUT M
160 INPUT D
165 INPUT Y
170 LET N(T)=INT (365.25*(Y-(M<3)))+INT (30.6001*(M+1+12*(M<3)))+D
192 NEXT T
230 LET N=N(2)-N(1)
290 PRINT AT L,0;B=N(1)-N(2)+1;AT L,(SIN (P2*B/23)*W+W+K);"P";AT L,(SIN (P2*B/28)*W+W+K);"E";AT L,(SIN (P2*B/33)*W+W+K);"I";AT L,(W+K);":"
295 SCROLL
297 PAUSE 20
298 IF INKEY$="P" THEN PAUSE 100
300 LET B=B+1
310 GO TO 290

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.