While agree with Miodrag's objections, I think the
methodology is correct and suggest the following
(enhancement?) which is meant to take a 5 element vector for
the rha and a left argument that indicates the element which
is y.
flipXYZ=: 4 : 'y. +/ . * ~ (x. -2)|."1(x.-2)|.1 1 0 0 0,0
_1 0 0 0,0 1 1 0 0,0 0 0 1 0,:0 0 0 0 1'
2 flipXYZ 9 0 _1 0 109 0 _1 0 10
1|.9 0 _1 0 10
0 _1 0 10 9
1 flipXYZ 1|.9 0 _1 0 10
0 _1 0 10 9
0 1 flipXYZ"0 _] 1|.9 0 _1 0 10
0 _1 10 _10 19
0 _1 0 10 9
But I have no clue about the infinite process.
(B=)
On Thu, 25 May 2006, Miodrag Milenkovic wrote:
+ hmmm, not corresponding to the problem as stated on two counts:
+
+ 1. there are only three numbers
+ 2. the sum is not > 0
+ ----------------------------------------------------------------------
+ For information about J forums see http://www.jsoftware.com/forums.htm
+
(B=) <----------my "sig"
Brian Schott
Atlanta, GA, USA
schott DOT bee are eye eh en AT gee em ae eye el DOT com
http://schott.selfip.net/~brian/
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm