|
|
Cousin Ricky <ric### [at] yahoocom> wrote:
> On 2015-09-01 07:25 AM (-4), Norbert Kern wrote:
> > #declare IterFn =
> > function (N, Re, Im, Zr, Zi) {
> > select (
> > N > 300 | Zr*Zr+Zi*Zi > 4,
> > 0,
> > IterFn (N+1, Re, Im, Zr*Zr-Zi*Zi+Re, 2*abs (Zr*Zi)+Im),
> > N/300
> > )
> > }
>
> Reducing the recursion level does not prevent the crash. I tried all
> the way down to 1.
The reason for this, I believe, is that pic doesn't support recursive functions.
You can get away with exactly one, if -and only if- it is defined before
anything else in the file.
Regards,
A.D.B.
Post a reply to this message
|
|