Help Contents / Arithmetic / Numeric Operations / MandelIterate

MandelIterate z c maxiter

is a nice example for a user-defined primitive. It helps computing the Mandelbrot set faster. Like in: 

to mandelIterateLogo z c maxiter 	repeat maxiter 
	[	z*=z 
		z+=c 
		if z > 4 [output repcount] 
	] 
	output maxiter end 

Additionally z and c can be of type Array of complex numbers, so one can compute several pixels at once. For examples see mandel.lg...mandel5.lg! 


previous: transposematrix
