mt
Class MT_ManyMagnetIJulia
Object
common:Generic
common:Formula
common:ConvergentDivergentFormula
mt:ConvergentDivergentManyJulia
mt:MT_ManyMagnetIJulia
class
- ConvergentDivergentManyJulia:MT_ManyMagnetIJulia
Mark Townsend, July 2008
Ultra Fractal Source
Toggle UF Source Code Display
class MT_ManyMagnetIJulia(ConvergentDivergentManyJulia) {
;
; Mark Townsend, July 2008
;
public:
complex func Init(complex pz)
return ConvergentDivergentManyJulia.Init(pz)
endfunc
complex func Iterate(complex pz)
ConvergentDivergentManyJulia.Iterate(pz)
return sqr((pz^2 + m_seed - 1) / (2*pz + m_seed - 2))
endfunc
default:
title = "Many Magnet I Julia"
complex param p_power
visible = false
endparam
param p_upperbailout
caption = "Bailout value"
default = 100.0
min = 1
endparam
param p_lowerbailout
caption = "Convergent bailout value"
default = 0.0001
min = 0
endparam
}
Methods inherited from class Object |
|
MT_ManyMagnetIJulia
public MT_ManyMagnetIJulia()
Init
public complex Init(complex pz)
- Description copied from class:
ConvergentDivergentFormula
- Set up for a sequence of values
This function will be called at the beginning of each
sequence of values (e.g. at the beginning of each fractal
orbit).
- Overrides:
Init
in class ConvergentDivergentManyJulia
- Parameters:
pz
- seed value for the sequence; for a normal fractal formula, this will be #pixel
- Returns:
- first value in the sequence; this corresponds to #z in a fractal formula
Iterate
public complex Iterate(complex pz)
- Description copied from class:
ConvergentDivergentFormula
- Produce the next value in the sequence
As long as the sequence has not bailed out, this function
will be continually called to produce sequence values.
- Overrides:
Iterate
in class ConvergentDivergentFormula
- Parameters:
pz
- previous value in the sequence; corresponds to #z in a fractal formula. Note that you should always use this value for computing the next iteration, rather than a saved value, as the calling code may modify the returned value before passing it back to the next Iterate() call.
- Returns:
- the next value in the sequence