There are many in my memory (but sometimes not as clear as they once were) 
having started being wowed by them more than 50 years ago.... One that I 
proudly remember was a response from The Hui that he was wowed by my response 
to a forum question asking how to calculate the distance from origin of 
coordinates to a set of xy points - 

I suggested keeping the xy pairs in a 2 by n table - e.g.

   ] xy=. _10 + ? 2 10$50
 8 25 27 27  2 24 22  8 12 24
23 26 _4 14 _1 19 29 35 39 12
   j./xy
8j23 25j26 27j_4 27j14 2j_1 24j19 22j29 8j35 12j39 24j12
   NB. and to calculate the desired distances -
   | j./xy
24.35159132 36.06937759 27.29468813 30.41381265 2.236067977 30.61045573 
36.40054945 35.90264614 40.80441153 26.83281573


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

Reply via email to