skull fractal & XaoS

over 5 years ago malczak fractals comments

recently ive been developing my port of XaoS fractal zoomer with skull fractal added to it. but... direct usage of skull fractal formula had given me quite poor effect, XaoS turned to be verrrry slow. and that was unacceptable ! to make it fast again i had to play with mathematics to get equivalent but faster to calculate skull fractal formula. ive started with skull fractal formula

img11.gif

in computations, the most expensive part of this formula are hiperbolic functions (for further details on calculations of hiperbolic functions with complex arguments go here). after some time i came up with formula of form

img21.gif
now we have to do less trigonometric calculations. what is most important, sine and cosine functions of the same real number can be evaluated in just one step using fpu instruction fsincos. using good implementation we can use this trick also with hiperbolic functions. but its not enough, because we can still do some further simplifications. which are related with arguments of used trigonometric functions. as we can see above, we have addition or subtraction of two complex numbers defined in skull fractal formula. in our case it is easy to show that these two operations can be expressed as :
img3.gif
there cis(a)=cos(a)+isin(a). After shown operations my XaoS port rendered skull fractal much faster.

Comments

No comments as yet. Be first to comment.

New comment

  1. (with http or https prefix)

  2. (use [code][/code] tags to post a code snippet)

  3. (javascript is required)

Website content premeditately commited by malczak & sobstel.
Layout by mlando. Icons by dryicons.com. All rights reserved.