Im Magazin „8000 PLUS" wurde im November 1989 der folgende Artikel abgedruckt.
Ein BASIC-Programm zum Erstellen von Lissajous-Figuren

LISFIG

By H F J Callan MBE
For the cold winter nights, a summer game to refresh the memory.
French mathematician Jules Anloine Lissajous grabbed the fame in the late 1800's from American Nathaniel Bowditch. The latter had first discovered what came to be known as Lissajous figures. Jules Antoine, however, delved just that bit more deeply. Now you will be able to see the shapes which fascinated both men come a five on your monitor.
Lissajous figures are produced by the intersection of two sinusoidal curves (the curve of sines represented as (y=a sin x)) the axes of which are at right angles to each other. This program reproduces Lissajous figures in viihich the relative frequencies and phase angles may be set.
In laypersons' terms the program produces some very attractive patterns on the screen of the PCW. It enters the pantheon of Mallard Basic listings which bring numbers to life alongside the Mandelbrot generator and A M Baldwin's Surfaces program. Many regular readers of Listings Plus will recognise Larry Simons' Plot routine which begins in line 50000. If you already have this you only need type in lines 10 to 290. Those of you new to these pages should type the whole program but the bonus is that once you have the Plot routine you can re-use It for your own ends.
Mr Callan gleaned his itnowledge of these interesting curves from his work as an electrical engineer where he spent time working with oscilloscopes, sine waves and such like. He tells us that he has more such programs in the pipe line.
The present program will produce its shapes in a few minutes, if not seconds. So other programs may well benefit from graphics in the form of Lissajoul figures without much loss of speed.
Setting the frequency ratio to 1 and the phase displacement to 90 should give you a circle, 1 and 180 will give a diagonal line. But changing the parameters even slightly will light up the screen with fabulous creations. The program itself is cleanly laid out and was accompanied by detailed documentation...just the way we like it.
Well packed code. The machine code routine is set, the clear screen and cursor-on cursor-off are defined and user inputs are accessed.
This is where the lines you will see on the screen are plotted. The Lissajous figure is positioned in the middle of the screen by line 120.
The Plot routine which is set up by the machine code is called by the program in order to display the sinusoidal curves on the screen.
This section ot the program checks to see whether you haue typed the machine code in cortectly and then creates Plot ilself.
Not a great deal to say about all this code except that you have to get it right or it won't work. Once you have it you can use it again and again.
[BASIC-Listing mit korrigierter Zeile 50060] und [Assembler-Listing]

HTML-Bearbeitung von Werner Cirsovius
Dezember 2014
© 8000 PLUS