Brian,
You are correct: the Rosetta Code produces a grid of constant size
(which is the starting size.)
I've just rechecked my script against the Rosetta site: there are only two
lines in Rosetta and I've reproduced them both.
The reason why your two expressions give different results is, I am
pretty confident, because in 14 iterations the starting pattern has
disappeared over the edge of the 5 by 5 grid but has not yet reached the
edge of the 10 by 10.
Roger
----- Original Message -----
From: "Brian Schott" <schott.br...@gmail.com>
To: <programm...@jsoftware.com>
Sent: Tuesday, November 13, 2012 5:04 PM
Subject: Re: [Jprogramming] Matrix Transformations based on local
submatrices
Roger,
Thanks for this clear comparision.
I tried some experiments with the Rosetta code version comparing
rp 5 and rp 10 and I get different results for the two, suggesting
that maybe the Rosetta code does not produce a variable size grid.
Perhaps that means that you did not use the whole Rosetta code version
for your cases?
For example, compare the following 2 cases which produce different
results.
;/7}.life ^: (< 14) rp 5
;/7}.life ^: (< 14) rp 10
--
(B=) <-----my sig
Brian Schott
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm