Plotting the Mandelbrot set with Forth
Mandelbrot set is one of the most famous fractal images. The following Forth program is used to plot the Mandelbrot set.
Representation of Fixed-Point Numbers
Fixed-point numbers in Qint.frac format are used for computation. int is the number of bits for the integer part (including the sign bit, if any), and frac is the number of bits for the fractional part. In the following program, the width of the fixed-point number is 16 bits (the same as a single-precision integer in Forth), i.e., int+frac=16.
