Mandelbrot Set Viewer v2
by Daniel Wedge
*** MORE GAMES AND PROGRAMS FOR CASIO CALCULATORS AT ***
******** http://www.student.uwa.edu.au/~wedgey *********
This program is guaranteed to run on 9700s but I'm not too sure about other models
because of different screen sizes. However, it's not too big to program and if it
works on another model then please email me and tell me!
You will need to specify which region of the set you want to draw, the default values
are given in brackets. Iterations is the number of times it will compute the point,
for greater detail crank it up but not too much if you don't want to wait forever! The best
way to see what you want is to draw the whole set (default settings) and then look at what
part you want drawn.
Once the initial portion of the Set is drawn, you can draw a box specifying the region you
want enlarged.
Check out www.student.uwa.edu.au/~fractoid for the best Mandelbrot Set Viewer that I've
seen.
Note that it will seem like the calculator is doing nothing but trust me, it is! It will
tell you when it has finished. And be thankful you don't have a HP - my friend wrote
a HP version and mine was finished before he got one third of the way through!
Enjoy!
Symbols used:
/ divide
-> assign key
> greater than
< less than
>= greater than or equal to
=> if/then (under program menu)
^2 square key
@ display key (triangle - under program menu)
i the number where i^2 = -1
ImP and ReP can be found under the complex menu
Xmin, Xmax etc can be found under the Var/Rang menu - only to save a few bytes space!
Size: 272 bytes
'MANDEL3
"Xmin(-2.2)"? -> C
"Xmax(0.5)"? -> E
"Ymin(1.1)"? -> D
"Ymax(1.1)"? -> F
"ITERATIONS"? -> I
Lbl 0
Range C,E,0,D,F,0
(E-C)/127 -> M
(F-D)/63 -> N
C+Di -> C
0 -> Z
0 -> J
Lbl 1
Z^2+C -> Z
Abs Z>2 => Goto 3
Isz J
J* Goto 1
ReP C -> G
ImP C -> H
Plot G,H
Lbl 3
C+Ni -> C
ImP C>=F => M+ReP C+Di -> C
ReP C>E => Goto 4
0->Z
0->J
Goto 1
Lbl 4
ReP C -> A
ImP C -> B
Plot A,B@
X -> C
Y -> F
Goto 0*