&.: Henry Rich
On Nov 17, 2017 11:32 AM, "Raul Miller" <[email protected]> wrote: > ^. is rank 0, which means you would be taking the geometric mean of > each number individually. > > You could do E&.(^."1) or E&.(^."2) or probably E&.(^."_) depending on > what you are trying to accomplish. > > Since E&.:^. is equivalent to E&.(^."E) which, in turn, is equivalent > to E&.(^."_) you probably do want to be using (^."_) > > Thanks, > > -- > Raul > > > On Fri, Nov 17, 2017 at 4:48 AM, 'Bo Jacoby' via Programming > <[email protected]> wrote: > > 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 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
