- UID
- 7
- 帖子
- 2888
- 精华
- 10
- 积分
- 2836
|
这个非常简单的代码今天做了三遍没有得到预想的效果,是asin(Z)函数的问题吗?
Carr1689S {
; A "Modified Carr" formula, based on the original with permission.
; Functionality added by Sharon S. Schultz, May, 2003.
; Updated for UF2 by Erik Reckase, Jan 2000
; Mandel
init:
z = (1/(#pixel-asin(#pixel)))/@scale
c = 1/(#pixel-asin(#pixel))
loop:
z = fn1(fn2(fn3(z*z+c)))
bailout:
|real(z)| <= @bailout
default:
title = "Carr 1689S"
method = multipass
periodicity = 0
maxiter = 100
magn = .3
center = (0,0)
heading
caption = "Parameters"
endheading
param scale
caption = "Scale"
default = 1.0
hint = "Select a value to scale the image elements."
endparam
param bailout
caption = "Bailout"
default = 4
hint = "Select a bailout value for the formula."
endparam
heading
caption = "Functions"
endheading
func fn1
caption = "Change"
default = ident()
hint = "Select a function to change the formula."
endfunc
func fn2
caption = "Change More"
default = ident()
hint = "Select a function to change the formula more."
endfunc
func fn3
caption = "Total Change"
default = ident()
hint = "Select a function to totally change the formula."
endfunc
} |
|