- UID
- 22171
- 帖子
- 418
- 精华
- 1
- 积分
- 1185
|
UF代码,很简单,却很有效哈
Newton_Mandelbrot1 {
init:
complex Q = @Q
int p = @power
c = #pixel
z = sqrt((Q^2+c^p)/6 )
oop:
err = (z^4-(c^p+Q^2)*z^2+c^p)/(4*z^3-2*(c^p+Q^2)*z)
z = z - err
bailout:
|err| > @bailout
default:
title = "Newton_Mandelbrot1"
maxiter = 2000
periodicity = 0
center = (0,0)
magn = 1.0
param power
caption = "power"
default = 1
endparam
param Q
caption = "Q"
default = (1.0,0.0)
endparam
param bailout
caption = "Bailout"
default = 0.000001
endparam
} |
|