On Thu, Feb 25, 2010 at 7:37 PM, Yuvaraj Athur Raghuvir <[email protected]> wrote: > I have to determine three unknowns: > (a) W where 2 = $W = w1, w2 > (b) L where 3 = $ L = l1 , l2 , l3 > (c) F a dyad that takes scalar inputs > > Such that > (6 1 5 2 3 4) -: \:; L F"0 0/ W NB. the order of values is known. > > For example, > F =: * > (6 1 5 2 3 4) -: \:; L F"0 0/ W [W =. 3 9 [L =. 20 16 12 > 0
No solutions are possible. Monadic \: will always be empty or have a zero in its result Thus, your required result can not be a result from monadic \: If you instead wanted the result 5 0 4 1 2 3 this would mean that (l1 F w1) > l1 F w2 (l1 F w2) >: l2 F w1 (l2 F w1) > l2 F w2 (l2 F w2) >: l3 F w1 (l3 F w1) >: l3 F w2 I believe this is also impossible if F=:* but I am too tired right now to prove that to myself. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
