Sorry about the small font in the last post, corrected here:

I need to work on the last bit with the [</] in it, and the use of ~ here.
It is sometimes hard for a beginner to realize where one word begins and
another ends, or if they are combinations (dyads). It took me a while to
get the * as a selector across the +'s inserted (/) over x, y and z. I
tried replacing +/, with #, and #, but received a different answer for the
solution with the ~i.7 at the end.


Anyway, I was tempted to try and make the J program look like the Perl
oneby using
for. but I realized I was lapsing into old habits. My minimal programming
experience is all with imperative languages or some Lisp too. My next
question is how do you get the J program to print the solutions as in the
Perl program? In my 3 x 4 matrices of the reduced problem set, I could see
how the 1's in the solution selection matrix set related to the original 3
x 4 matrix of x, y and z rows. Without re-writing it, is there a way to
index the solution?


One question that is on my mind is the tacit vs. explicit style. I am in
love with the way you all distill the solution down to a tacit one-liner,
just as a maths formula is simplified, however, I am starting to think that
if and when I revisit this problem in the future, it will take a bit of
jarring to read it, translate it if you will. I am guessing for. loops are
very expensive cycle-wise and it would be just as easy to make words for
phrases if I wish to preserve future readability. I am getting addicted to
the fast way of working in the J environment, and I am grateful to all on this
list for sharing their wisdom.


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

Reply via email to