Graphic performance test #3/3 : NumWorks (Python) vs HP Prime (HPPPL non-CAS)

Subscribers:
497
Published on ● Video Link: https://www.youtube.com/watch?v=oW3OFhkStfE



Duration: 3:29
2,160 views
13


Mandelbrot fractal using complex numbers in interpreted languages.
NumWorks (v1.2.0) and HP Prime (v13011) comparison.

NumWorks code in Python (firmware 1.2.0+) :
import kandinsky
def mandelbrot(W,H,N) :
for x in range(W):
for y in range(H):
z=complex(0,0)
c=complex(2.7*x/(W-1)-2.1,-(1.87*y/(H-1)-.935))
j=0
while j {less than} N and abs(z) {less than} 2:
j=j+1
z=z*z+c
t=255*j/N
kandinsky.set_pixel(x,y,kandinsky.color(int(t),int(.75*t),int(.25*t)))

HP Prime code in HPPPL non-CAS :
EXPORT fractal(w,h,n)
BEGIN
local x,y,z,c,j,t
FOR x FROM 0 TO w-1 DO
FOR y FROM 0 TO h-1 DO
z:=0
c:=2.7*x/(w-1)-2.1-i*(1.87*y/(h-1)-.935)
j:=0
WHILE j {less than} N AND abs(z) {less than} 2 DO
j:=j+1
z:=z*z+c
END;
t:=255*j/N
PIXON_P(x,y,RGB(IP(t),IP(.75*t),IP(.25*t)))
END;
END;
FREEZE
WAIT(0)
#end




Other Videos By Xavier Andréani


2019-06-28TI-83 Premium CE & Edition Python : Flash performances test
2019-02-02TI-82 Advanced LED controlled with Omnicalc app
2018-10-13TI-Nspire/NumWorks : NES NTSC performances comparison (overclock)
2018-10-13TI-Nspire/NumWorks : NES NTSC performances comparison (no overclock)
2018-10-06TI-Nspire/NumWorks : NES performances comparison
2018-10-02NumWorks N0100 + NES emulator : Zelda II intro
2018-02-27Nanoloader PoC #2 - TI-Nspire CX boot manager compatible CR4+ / W+ hardware
2018-02-27Nanoloader PoC - TI-Nspire CX boot manager compatible CR4+ / W+ hardware
2018-01-26TI-83 Premium CE + TI-Robot E3 : CATOBOT demo
2017-12-17NumWorks firmwares performance test : 1.2.0 vs 1.3.0
2017-12-09Graphic performance test #3/3 : NumWorks (Python) vs HP Prime (HPPPL non-CAS)
2017-12-09Graphic performance test #2/3 : NumWorks (Python) vs HP Prime (HPPPL CAS)
2017-12-09Graphic performance test #1/3 : NumWorks (Python) vs HP Prime (Python-like)
2017-12-08TI-Innovator Rover DNB 2017 Amérique du Sud : programme Scratch n°2
2017-12-08TI-Innovator Rover DNB 2017 Amérique du Sud : programme Scratch n°1
2017-12-05Python Mandelbrot fractal - NumWorks 1.1.2 & 1.2.0 (cmath) comparison
2017-11-24How to drag scrollbars elevators on TI-Nspire CX & TouchPad
2017-11-10Diams playthrough levels 1-5 (TI-83 Premium CE)
2017-11-10Ticket to ride - bot vs bot (TI-Nspire CX CAS)
2017-11-04TI-Innovator Rover demo program #3 [Dance] - APMEP 2017 Nantes
2017-11-02TI-Innovator Rover demo program #2 [Obstacles] - APMEP 2017 Nantes