Your solution assumes that you knew what the author was thinking. I guess you have to solve the total problem yourself and hope you get a simpler solution.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Raul Miller Sent: Friday, October 07, 2011 6:20 AM To: Programming forum Subject: Re: [Jprogramming] Tacit vs. Explicit 2011/10/7 Linda Alvord <[email protected]>: > Is there a way to go from a tacit expression to find the correct explicit > expression? > > a =: 13 :'((+/ % #) * 1 + #) - +/' > a 90 90 90 I think you want: A=: 3 :'(((+/ % #) * 1 + #) - +/) y' But of course, there are many other equivalent explicit expressions. For example: (((+/ % #) * 1 + #) - +/) Y=: 90 90 90 90 (((+/ % #) * 1 + #)Y) - +/ Y=:90 90 90 90 (((+/ % #)Y) * 1 + #Y) - +/ Y=:90 90 90 90 (((+/Y) % #Y) * 1 + #Y) - +/ Y=:90 90 90 90 This suggests: expr=:3 :0 sum=. +/y cnt=. # y ((sum % cnt) * 1 + cnt) - sum ) But, of course, the introduction of meaningful variable names requires an engaged reader. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
