Roger posed:
>  What is the shortest expression you know of for computing 
>  the average of a vector v?  (Shortest = fewest words.)  

Someone at Vector may've been reminiscing about the same puzzle;  check out the 
APL and J examples in the big yellow box at the top of their front page:

    http://www.vector.org.uk/

>  The J answer is shorter than the APL answer.

This is due to the verb train innovation; i.e. tacit code.  The sole difference 
is that APL must name the vector twice.

-Dan

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

Reply via email to