That is neat  and does give me further material to think about.
I note that &. doesn't work (as I expected from the dictionary entry) but &.: so I have to figure this out Is it because that in u%.v y the u is applied to each element of y and for &.: it is applied to the whole of y?

Don
On 16/11/2013 5:57 PM, Raul Miller wrote:
Here's how I think I'd do this:

    RMS=: (+/ % #)&.:*:
    RMS 1 2 1 2
1.58114


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

Reply via email to