|
![](/i/fill.gif) |
Eitan Tal <eit### [at] netvision net il> wrote:
: I know the plasma is a function, I can't seem to see anything near that
: so I am trying to think of something near it.
: all fractals that fractint uses are functions and pretty short.
But they are _recursive_ functions (which are calculated iteratively, ie.
with loops).
To my knowledge there's no non-recursive function which you calculate just
once and you get the plasma color at a specific coordinate pair.
For example, the function that calculates the Mandelbrot set is recursive.
In theory you have to calculate the recursion an infinite number of times
for some points before you can be sure that it actually belongs to the set.
In practice you calculate it only a certain number of times (ie. you make
just an approximation).
There exist no function that you calculate only once and that gives you
the answer whether the point belongs to the set or not.
Now I quote myself again:
:> If the iterative version is enough, one algorithm can be found in my
:> macro (which I think Ken sent to you).
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |