- UID
- 7
- 帖子
- 2888
- 精华
- 10
- 积分
- 2836
|
奇怪的UF代码:
arnewurzel {
; Arne Richter
init:
bool done = false
b = #pixel
loop:
a = @radikand / b
#z = (a+b) / 2
If abs (b-a) < @epsilon
done = true
else
b = (a+b) / @quotient ; Parameter added to avoid all points to be
outside
endif
bailout:
done == false
default:
param @epsilon
default=(0.1,0)
endparam
param @quotient
default=(1,1)
endparam
param @radikand
default=(9,0)
endparam
}
其中红色部分的abs函数,按UF规定:abs(Z)还是复数,那么两个复数如何比较大小呢? |
-
-
Fractal1.jpg
(110.13 KB)
|