> From: Raul Miller <[EMAIL PROTECTED]>

> 
> On Mon, Nov 17, 2008 at 4:19 PM, Dan Bron wrote:
> > I think the colors and solidity are merely hints.  Here's a much larger
> > hint:
> >
> >  http://en.wikipedia.org/wiki/Image:Dragon_curve_iterations_(2).svg
> 
> If I understand properly, the basic structure is two line segments
> arranged on a 90 degree angle.
>    start=: 0 0, 1 0,: 1 1
> 
> And the iterative process involves a 90 degree rotation and a
>    step=: ],{: +"1 (2 2$0 _1 1 0) +/ .*~ |[EMAIL PROTECTED]: -"1 {:
> 
> I think that's right, but I don't have a handy plotting

   load'plot'

NB. simple

    plot<"1|:step^:12 start

NB. colorful

    ([:pd[:<"1|:)every'reset';|.'show';step&.>^:(i.16)<start


      
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to