HP Forums

Full Version: SZ_Mandelbrot explorer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Based on an old fractal explorer I made more than three decades ago. In this implementation is just a Mandelbrot part. Straightforward implementation, without extra space and extra passes. Color scheme is arbitrary, here made only by simple shifting. There is no need to wait to be drawn full screen.

Usage:

Moving by cursors
Press point on the screen to zoom in
+ : Zoom in
- : Zoom out
1 : Iteration limit decrease by 25
2 : Iteration limit increase by 25
Num : Allow value editing
Esc : Exit from the program
Help: This help

Calling convention:

SZ_Mandelbrot(X, Y, Zoom, Iter)

Where X is real part and Y is imaginary part of complex c constant. Zoom factor can be up to 31 according to HP Prime precision. Iteration value can be according to zoom factor.

Examples:

SZ_Mandelbrot(0, 0, 1, 150)
SZ_Mandelbrot(−1.76647949222, 4.17785644529ᴇ−2, 14, 150)
SZ_Mandelbrot(−0.562231445313, 0.642797851563,11,150)
SZ_Mandelbrot(−9.0770740062ᴇ−3, 0.706640247723,31,225)
BTW, if anyone have a bit of time to test on a real calculator, I would appreciate some feedbacks about elapsed time for some samples on an older and newer version of Prime.

It seems that latest beta emulator is actually a simulator and time on real device may be 8-10x slower or even more.

Thanks in advance.
I have a Rev C Prime.

I chose the SZ_Mandelbrot_DEMO option and it self-reported as taking about 481,500 ms. This is 50 times slower than my virtual Prime, which reported about 9,700 ms.
Hello Sasa, Thank you very much for the program.

What other codes have developed? so please share them.

JaiMeza
Reference URL's