Standard
Class Standard_Magnet1Julia

Object
  extended by common:Generic
      extended by common:Formula
          extended by common:ConvergentDivergentFormula
              extended by Standard:Standard_Magnet1Julia

class 
ConvergentDivergentFormula:Standard_Magnet1Julia

Object version of Magnet1Julia in Standard.ufm. Magnetic Julia set type 1.


Ultra Fractal Source

Toggle UF Source Code Display

 class Standard_Magnet1Julia(common.ulb:ConvergentDivergentFormula) {
 ;
 ; Object version of Magnet1Julia in Standard.ufm.
 ; Magnetic Julia set type 1.
 ;
 public:
   complex func Init(complex pz)
     ConvergentDivergentFormula.Init(pz)
     return pz
   endfunc
 
   complex func Iterate(complex pz)
     ConvergentDivergentFormula.Iterate(pz)
     return sqr( (pz^2 + @p1 - 1) / (2*pz + @p1 - 2) )
   endfunc
 
 default:
   title = "Magnet 1 (Julia)"
   helpfile = "Uf*.chm"
   helptopic = "Html/formulas/standard/magnet.html"
   param p1
     caption = "Parameter"
     default = (0, 0)
     hint = "This parameter defines the shape of the fractal. Use the Explore \
             or Eyedropper feature in combination with the Magnet 1 \
             (Mandelbrot) formula to find interesting values."
   endparam
   param p_upperbailout ; Overrides p_upperbailout from ConvergentDivergentFormula
     caption = "Bailout value"
     default = 100.0
     min = 1
     exponential = true
     hint = "This parameter defines how soon an orbit bails out while \
             iterating. Larger values give smoother outlines; smaller values \
             generally produce more interesting shapes around the set."
   endparam
   param p_lowerbailout ; Overrides p_lowerbailout from ConvergentDivergentFormula
     caption = "Convergent bailout value"
     default = 0.0001
     min = 0
     exponential = true
     hint = "This parameter defines how soon a convergent orbit bails out while \
             iterating. Smaller values give more precise results but usually \
             require more iterations."
   endparam
   complex param p_power ; Hide p_power from Formula
     visible = false
   endparam
 }
 


Constructor Summary
Standard_Magnet1Julia()
           
 
Method Summary
 complex Init(complex pz)
          Set up for a sequence of values
 complex Iterate(complex pz)
          Produce the next value in the sequence
 
Methods inherited from class common:ConvergentDivergentFormula
GetLowerBailout, GetUpperBailout, IsBailedOut
 
Methods inherited from class common:Formula
GetPrimaryExponent
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

Standard_Magnet1Julia

public Standard_Magnet1Julia()
Method Detail

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 ConvergentDivergentFormula
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