Mandelbrot Set Calculator Program



For many years there has been a rumour of a calculator program which drew the Mandelbrot Set on a graphical calculator. Well here it is! This is a very slow program to run (40mins), so if you want to run it buy yourself some Duracell batteries and start waiting!



ViewWindow -2,.8,5,-1,1,5¿
For -1.7®X To .5 Step .05¿
For -1®Y To 1 Step .05¿
0®A¿
0®B¿
For 1®N To 25¿
A²-B²+X®C¿
2A×B+Y®B¿
C®A¿
If A²+B²>4¿
Then 26®N¿
IfEnd¿
Next¿
If N=25¿
Then Plot X,Y¿
IfEnd¿
Next¿
Next¿

This program is written for the 7400G Casio calculators, on which is works best. It will work on a 9850G / 9750G calculator, however the effect is not so great. There is an alternative program, written for the 9750G / 9850G calculators, which takes advantage of the larger screen and the complex number function to run faster and produce a better picture:

(This one ONLY works on the 9750G / 9850G calculators)

ViewWindow -3,1.5,5,-1,1,5¿
For -1.5®X To .5 Step .03¿
For -1®Y To 1 Step .02¿
0®Z¿
X+Y×i®C¿
For 1®N To 25¿
Z×Z+C®Z¿
If Abs(Z)>2¿
Then 26®N¿
IfEnd¿
Next¿
If N=25¿
Then Plot X,Y¿
IfEnd¿
Next¿
Next¿
Hints:
ViewWindow is found by going SHIFT - F3 - F1.
Plot is found by going SHIFT - F4 - F3 on a 7400 and SHIFT - F4 - F6 - F1 on a 9750 / 9850
on a 9750/ 9850 i is found by going OPTN - F3 - F1
on a 9750/ 9850 ABS is found by going OPTN - F3 - F2
all other commands are somewhere under the menu accessed by going SHIFT - VARS

Previous     Return to MathSoc Index     Next

Credits: Written and Programmed by Luke Wakeling