The arithmetic mean is
   E=.+/ % #
For example   E 2 3
2.5
The geometric mean is 
  E&.(2&^.) 2 3
2.44949
or
E&.:(^.) 2 3
2.44949
but (&.) does not work with (^.)
E&.(^.) 2 3
2 3
How come?
Thank! Bo. 

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

Reply via email to