Re: Standard way to compute a Mandelbrot fractal in APL

2020-09-22 Thread Kacper Gutowski
On Tue, Sep 22, 2020 at 03:16:08PM +0200, Dr. Jürgen Sauermann wrote: thanks, fixed missing DOMAIN ERROR in SVN 1348. Thanks, but I failed to realize these are separate cases; the power function with complex left argument and real right still gives infinity at r1348. These should be domain e

Re: Standard way to compute a Mandelbrot fractal in APL

2020-09-22 Thread Dr . Jürgen Sauermann
Hi Kacper, thanks, fixed missing DOMAIN ERROR in SVN 1348. Best Regards, Jürgen On 9/22/20 10:44 AM, Kacper Gutowski wrote: On Mon, Sep 21, 2020 at 01:17:18PM +0800, Elias Mårtenson wrote: What is the neatest way t

Re: Standard way to compute a Mandelbrot fractal in APL

2020-09-22 Thread Kacper Gutowski
On Mon, Sep 21, 2020 at 01:17:18PM +0800, Elias Mårtenson wrote: What is the neatest way to compute a Mandelbrot fractal in APL? The fact that you have to break out of the loop as soon as the absolute value of Z is >2 makes it a bit ugly. Is there a neater way to do this? This is what I came up

Standard way to compute a Mandelbrot fractal in APL

2020-09-20 Thread Elias Mårtenson
What is the neatest way to compute a Mandelbrot fractal in APL? The fact that you have to break out of the loop as soon as the absolute value of Z is >2 makes it a bit ugly. Is there a neater way to do this? This is what I came up with that works in GNU APL: " #"[⌊0.5+50÷⍨ { (n ⊣ {(x+⍵×⍵) ⊣ n←n+1