lisp or draw error



On 7/6/08, Adam Majewski <adammaj1 at o2.pl> wrote:

>  Here is last version:
>  http://commons.wikimedia.org/wiki/Image:6furcation.gif

Adam, thanks for your messages on this topic.

>  > /* define function ( map) for dynamical system z(n+1)=f(zn,c)  */
>  > f(z,c):=z*z+c;
>  >
>  > /* maximal number of iterations */
>  > iMax:200; /* to big couses bind stack overflow */

Try changing the definition of f to f(z, c) := expand (z*z + c);
I think that could speed up your computations.
It might also fix the stack overflow problem.

Some other random comments --- I recommend constructing a function
instead of a program, so you can run it repeatedly with different
parameters. I also recommend separating the plotting stuff from the
computational stuff (i.e. compute list of points in one function and the
plot in another).

Hope this helps

Robert Dodier