TiledNewton {
; Ron Barnett, December 1998
; To use this as a tiler, use the aspect ratio transformation
; Set the aspect ratio to 1.0
; This is based on an old fractint tiler of Ray Girvan's
init:
complex pwr = @p1 - 1.0
complex npwr = -@p1
complex rpwr = pwr/@p1
complex rrt = @p2/@p1
float pwrtest = 10^(100/cabs(@p1))
bool bTest = false
float isnear = @p3*cabs(@p2)^cabs(@p1)
#z=(@fn1(@fn2(real(#pixel)))+flip(@fn1(@fn2(imag(#pixel)))))/@p4
complex oldz = 0
loop:
oldz = #z
z1 = rrt*#z^npwr
z = #z*(rpwr + z1)
btest = (cabs(oldz-#z) < isnear)
bailout:
!btest && (cabs(z) < pwrtest)
default:
title = "Tiled Newton"
center = (0.0, 0.0)
maxiter = 1000
periodicity = 0
magn = 0.477465