--- title: "Biorhythms (Syntax)" id: 76338 type: "computer_media" slug: "biorhythms-syntax" url: "http://localhost/computer_media/biorhythms-syntax/" markdown_url: "http://localhost/computer_media/biorhythms-syntax.md" published_at: "2026-11-11T08:03:08+00:00" modified_at: "2026-11-11T08:03:08+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/biorhythms-syntax-1.png" excerpt: "Draw a month of your biorhythm curves, physical, emotional and intellectual, centered on any date you choose." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Doug McRoy" slug: "doug-mcroy" taxonomy: "indiv" url: "http://localhost/indiv/doug-mcroy/" genre: - name: "Entertainment" slug: "entertainment" taxonomy: "genre" url: "http://localhost/type/entertainment/" media_type: "Program" programmers: - name: "Doug McRoy" slug: "doug-mcroy" taxonomy: "indiv" url: "http://localhost/indiv/doug-mcroy/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Biorhythms%20%281984%29%28McRoy%2C%20Doug%29%28TS1000%29%28US%29%28Program%29.zip" mediadate: "1984" images: - url: "http://localhost/wp-content/uploads/2026/11/biorhythms-syntax-1.png" - url: "http://localhost/wp-content/uploads/2026/11/biorhythms-syntax-2.png" article_media: - id: 19884 title: "Biorhythms" type: "article" url: "http://localhost/article/biorhythms/" media_type_tags: "Entertainment" license: false --- # Biorhythms (Syntax) Plots the three biorhythm cycles, physical (23 days), emotional (28 days) and intellectual (33 days), for the 15 days on each side of a chosen date. Enter your birth date and the date you want, each as month, day and year one number at a time, and your name. The program works out your age in days and draws the curves in letters P, E and I across the screen, with the chosen date marked down the middle, past on the left and future on the right. Drawing takes about a minute and a half. Answer the COPY question to print the chart. GOTO 1000 saves the program so that it starts itself; if it stops, GOTO 150 brings it back. The article says it uses about 6.2K of RAM. Published in Syntax January 1984 ([Biorhythms](https://timexsinclair.com/article/biorhythms/)). ## Source Code ``` 3 REM BIORHYTHM PROGRAM 5 PRINT AT 3,8;"████▖ ▐█▌ ▟███▙" 6 PRINT AT 4,8;"█ ▝█ █ █▘ ▝█" 7 PRINT AT 5,8;"█ ▗█ █ █ █" 8 PRINT AT 6,8;"████▌ █ █ █ ██" 9 PRINT AT 7,8;"█ ▝█ █ █ █" 10 PRINT AT 8,8;"█ ▗█ █ █▖ ▗█" 11 PRINT AT 9,8;"████▘ ▐█▌ ▜███▛" 12 PRINT AT 11,1;"███▙ █ ▐▌█ █▐███▌█ ▐▌█▌ ▐█" 13 PRINT AT 12,1;"█ ▜▌█ ▐▌▜▌ ▐▛ █ █ ▐▌██▄██" 14 PRINT AT 13,1;"█ ▐▌█ ▐▌▝█ █▘ █ █ ▐▌█▝█▘█" 15 PRINT AT 14,1;"█ ▟▘████▌ ▜█▛ █ ████▌█ █" 16 PRINT AT 15,1;"███▌ █ ▐▌ ▝█▘ █ █ ▐▌█ █" 17 PRINT AT 16,1;"█ ▜▖ █ ▐▌ █ █ █ ▐▌█ █" 18 PRINT AT 17,1;"█ ▜▌█ ▐▌ █ █ █ ▐▌█ █" 20 FOR N=1 TO 64 STEP 2 25 PLOT N,22+20*SIN (N/32*PI) 30 NEXT N 35 PRINT AT 21,0;"BY DOUG MCROY 1983" 40 FOR I=1 TO 100 45 NEXT I 50 CLS 145 REM INPUT PROMPTS 150 CLS 155 PRINT AT 5,0;"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀" 160 PRINT AT 6,6;"FOR BIORHYTHM CURVES:" 165 PRINT AT 7,0;"▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄" 170 PRINT AT 10,0;"ENTER BIRTH DATE;" 175 PRINT AT 11,5;"MONTH, DAY, AND YEAR." 180 PRINT AT 14,0;"ENTER EACH NUMBER SEPARATELY." 185 INPUT M1 190 INPUT D1 195 INPUT Y1 200 PRINT AT 18,0;M1;"/";D1;"/";Y1 210 PRINT AT 10,0;" " 215 FOR I=1 TO 10 220 NEXT I 225 PRINT AT 10,0;"NOW ENTER DESIRED DATE:" 235 INPUT M2 240 INPUT D2 245 INPUT Y2 250 PRINT AT 19,0;M2;"/";D2;"/";Y2 255 PRINT AT 11,5;" " 260 PRINT AT 10,0;" " 263 PRINT AT 14,0;" " 265 FOR I=1 TO 15 267 NEXT I 270 PRINT AT 10,0;"NOW ENTER NAME " 275 INPUT Z$ 280 CLS 285 FAST 290 GOSUB 815 292 REM GRAPH PRINT+INFO 293 SLOW 294 CLS 297 PRINT AT 12,1;"PAST";AT 12,26;"FUTURE" 300 PRINT AT 14,4;"EACH DOT EQUALS ONE DAY." 301 PRINT AT 16,6;"(A 31 DAY GRAPH)" 303 PRINT AT 10,0;" ▖ ▖ ▖ ▖ ▖ ▖" 304 FOR N=1 TO 31 305 PRINT AT 11,N;"▘" 310 NEXT N 315 PRINT AT 14,4;" " 325 PRINT AT 14,2;"VERTICAL LINE";AT 14,17;"IS GRAPH DATE." 327 FOR N=1 TO 19 330 PRINT AT N,16;"▌" 335 NEXT N 336 FOR I=1 TO 20 337 NEXT I 340 PRINT AT 14,0;" ";AT 14,17;" " 341 PRINT AT 16,6;" ▌ " 342 PRINT AT 12,1;" ";AT 12,26;" " 345 PRINT AT 20,0;Z$ 350 PRINT AT 21,0;"BORN ";M1;"/";D1;"/";Y1 355 PRINT AT 0,0;"BIORHYTHM FOR";AT 0,13;"(DATE) ";M2;"/";D2;"/";Y2 360 PRINT AT 20,16;"DAYS OLD=";T 368 REM SIN PRINT PHY 370 LET I=23 375 PRINT AT 21,16;"PHYSICAL" 380 LET L=J-2*I 385 FOR N=0 TO 63 STEP 2 390 IF J+N>61 THEN GOTO 420 395 PLOT J+N,22+18*SIN (N/I*PI) 400 PRINT "P" 405 UNPLOT J+N,22+18*SIN (N/I*PI) 410 NEXT N 420 FOR N=43 TO 46-((32-(64-J)/2)*2) STEP -2 425 PLOT L+N,22+18*SIN (N/I*PI) 430 PRINT "P" 435 UNPLOT L+N,22+18*SIN (N/I*PI) 440 NEXT N 447 GOSUB 920 449 REM SIN PRINT EMO 450 LET I=28 455 PRINT AT 21,16;"EMOTIONAL" 460 LET L=J-2*I 465 FOR N=0 TO 63 STEP 2 470 IF J+N>61 THEN GOTO 500 475 PLOT J+N,22+18*SIN (N/I*PI) 480 PRINT "E" 485 UNPLOT J+N,22+18*SIN (N/I*PI) 490 NEXT N 495 PRINT 500 FOR N=53 TO 56-((32-(64-J)/2)*2) STEP -2 505 PLOT L+N,22+18*SIN (N/I*PI) 510 PRINT "E" 515 UNPLOT L+N,22+18*SIN (N/I*PI) 520 NEXT N 527 GOSUB 955 529 REM SIN PRINT INT 530 LET I=33 535 PRINT AT 21,16;"INTELLECTUAL" 540 LET L=J-2*I 545 FOR N=0 TO 63 STEP 2 550 IF J+N>61 THEN GOTO 580 555 PLOT J+N,22+18*SIN (N/I*PI) 560 PRINT "I" 565 UNPLOT J+N,22+18*SIN (N/I*PI) 570 NEXT N 580 FOR N=63 TO 66-((32-(64-J)/2)*2) STEP -2 585 PLOT L+N,22+18*SIN (N/I*PI) 590 PRINT "I" 595 UNPLOT L+N,22+18*SIN (N/I*PI) 600 NEXT N 605 PRINT AT 21,16;" " 610 REM PROMPTS 615 PRINT AT 21,20;"COPY? Y OR N" 620 LET Z$=INKEY$ 625 INPUT Z$ 630 IF CODE Z$=62 THEN COPY 635 IF CODE Z$=51 THEN GOTO 643 640 IF CODE Z$<>62 OR CODE Z$<>51 THEN GOTO 625 643 PRINT AT 21,0;" RUN PGM AGAIN? Y OR N" 645 LET Z$=INKEY$ 650 INPUT Z$ 655 IF CODE Z$=62 THEN GOTO 150 660 IF CODE Z$=51 THEN GOTO 675 665 IF CODE Z$<>62 OR CODE Z$<>51 THEN GOTO 650 670 REM TERMINATION DISPLAY 675 CLS 680 PRINT AT 12,7;"HAVE A GOOD DAY..." 685 FOR I=1 TO 25 690 NEXT I 695 FOR I=1 TO 13 700 SCROLL 705 NEXT I 710 STOP 815 REM TIME PERIOD 820 LET P$="303232332323" 825 LET T=(Y2-Y1)*365 830 FOR I=1 TO M1-1 835 LET T=T-CODE P$(I) 840 NEXT I 845 FOR I=1 TO M2-1 850 LET T=T+CODE P$(I) 855 NEXT I 860 LET T=T+D2-D1 865 FOR I=Y1 TO Y2 870 IF 4*INT (I/4)=I THEN LET T=T+1 875 NEXT I 880 IF (Y1=Y2 AND M1<3 AND M2<3) OR M1>2 THEN LET T=T-1 885 LET T=T+1 887 REM X-AXIS OFFSET PHY 890 LET W=T/23 895 LET W=ABS W+INT W 900 IF INT W>0 THEN LET W=ABS W-INT W 905 LET J=W*46 910 IF J<=30 THEN LET J=30-J 915 IF J>30 THEN LET J=46-(J-30) 917 RETURN 920 REM X-AXIS OFFSET EMO 925 LET W=T/28 930 LET W=ABS W+INT W 935 IF INT W>0 THEN LET W=ABS W-INT W 940 LET J=W*56 945 IF J<=30 THEN LET J=30-J 950 IF J>30 THEN LET J=56-(J-30) 953 RETURN 955 REM X-AXIS OFFSET INT 960 LET W=T/33 965 LET W=ABS W+INT W 970 IF INT W>0 THEN LET W=ABS W-INT W 975 LET J=W*66 980 IF J<=30 THEN LET J=30-J 985 IF J>30 THEN LET J=66-(J-30) 986 IF J>63 THEN LET J=J-66 990 RETURN 1000 SAVE "BIORHYTHM" 1005 RUN ```