XaoS online help

Using user formulas

Current XaoS release supports entering user formulas during runtime. Select Fractal/User formula to define custom fractal formula. Using Fractal/User initialization option, user can change seqeance starting point z0. By default (in orginal Mandelbrot fractal) z0 is set to 0. User formulas should be interpreted as functions of type
Z(n+1) = formula (Z(n), Z(n-1), C).

In user formulas, as shown above, three variables are available:

z
current sequance point Z(n)
c
current plane 'point'
p
previous sequence point Z(n-1)

Format for complex numbers is {re;im}
eg. {3;2} is complex number 3+2i.

User formulas are calculated using SFFE library. Two implementations of complex math are available: first is based on GSL library, second one is based on asm implementation of complex math, and can be much faster but less stable. User can select complex math backend during compilation.

To use GSL complex math write:
make clean
./configure --with-gsl=yes
make

To use asm complex math write:
make clean
./configure --with-gsl=no
make

Available functions are listed below:

basic operations
+, -, *, /

basic trigonometry
sin, cos, tan, cot
asin, acos, atan, acot
sinh, cosh, tanh, coth

Exponential and logarithmic functions
exp
log - natural logarithm
log2, log10
logN (base, z) - logarithm of base N (where N is integer)
logCN (base, z) - logarithm of base CN (where CN is complex)

power functions
powi - power with integer exponent (fastest)
powd - power with real exponent
powdc - power with complex exponent
pow - same as powd
sqr - square

square functions
sqrt - square root of a complex number
rtni (z, n, i) - i-th root of n-th orgder

other functions
rand (max) - random real number in range [0, max)
inv - inverse
abs - absolute value
re - real part
im - imaginary part