HP Forums
SZ_Mandelbrot explorer - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP Prime Software Library (/forum-15.html)
+--- Thread: SZ_Mandelbrot explorer (/thread-11641.html)

SZ_Mandelbrot explorer - sasa - 10-23-2018 04:47 PM

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.


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.


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)

RE: SZ_Mandelbrot explorer - sasa - 10-24-2018 09:24 AM

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.

RE: SZ_Mandelbrot explorer - Geoff - 11-01-2018 08:48 PM

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.

RE: SZ_Mandelbrot explorer - compsystems - 11-02-2018 04:48 PM

Hello Sasa, Thank you very much for the program.

What other codes have developed? so please share them.