Given a J expression:
   0j_180p_1*^.@(j.-.&.*:)@(+/ .*)&(% +/&.:*:)

(1) Describe its purpose, and

(2) Use that to simplify the expression.

Here, the biggest hurdle is extracting the purpose from even a short
bit of code. I'm not sure that extracting purpose from code is
particularly viable in the general case. (Though having example
arguments would be a tremendous help.) Once that's done, the rest is
much easier.

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

Reply via email to