On 10/25/07, Dan Bron <[EMAIL PROTECTED]> wrote:
> That is, the contest isn't between  +/%#  and  (+/v)div rho v  ;
> J's entry is actually (+/%#)v  .

I wrote my quip after visiting the big yellow box at the top of
http://www.vector.org.uk/

The APL example used quad and quadquad (which I assume,
with no real research into it, is a reference to the last thing
retrieved using quad).  Anyways, it seems to me that in APL
you need some kind of naming system, or you need to
provide the information to APL twice (at which point you
might be better off supplying the count of items manually,
rather than going to the work of supplying the items that
need to be counted, for that operation).

In other words, in J I can do:
   (+/ % #) 2 3 5 7
where in APL I must do something more along the lines of
what I might express in J as
   (+/v)%#v=.2 3 5 7

That quad (or quadquad) retrieves the value from the user rather
than having that already included on the line complicates this
point of view somewhat, but it's still seems to me that in APL
you need to associate a name with the value you are computing
the average of, where that is not required for J.

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

Reply via email to