Publication: Sinclair Timex User Group Newsletter
Pub Details: Sinclair Timex User Group Newsletter v1 n4 (Volume 1, Issue 4)
Date: October 1982
Pages: 4
It has been suggested that we have a program in each letter. Here is a simple program that plots Lissajous patterns, such as you may see on an oscilloscope. Enter the first two inputs as small integers, less than ten. The third parameter controls the resolution of the plot. Try 2, 3, 50.
10 INPUT A
20 INPUT B
30 INPUT N
40 FOR I=0 TO 2*PI STEP PI/N
50 PLOT 32+20*SIN (A*I), 21+20*COS (B*I)
60 NEXT I
(Remember TO, PI, STEP, SIN, and COS are tokens.)
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.