In this case you are using agenda with a noun right argument then
applying rank to the result. I think Jose is trying to use the verb
right argument form of agenda. Consider this:

ZeroOne=. 0 1"_
Zero=. 0"_

   -`% @. ZeroOne 1 2 3 4 5
|rank error
|       [email protected] 1 2 3 4 5

   -`% @. Zero 1 2 3 4 5
_1 _2 _3 _4 _5

So it seems that in the [email protected] form v cannot return more than one index
to select a train as in the [email protected] form.

On Thu, Nov 19, 2009 at 9:47 AM, Don Guinn <[email protected]> wrote:
> Added parens to make the rank apply to the entire expression.
>
>   ((-`%)@.((0 1))"_) 1 2 3 4 5
> 0 1.5 2.66667 3.75 4.8
>
>  Is this what you wanted?
>
> On Thu, Nov 19, 2009 at 7:07 AM, Jose Mario Quintana <
> [email protected]> wrote:
>
>> What is wrong with the agenda in the last line?
>>
>>    (- %) 1 2 3 4 5
>> 0 1.5 2.66666667 3.75 4.8
>>
>>    (-`%)@.(0 1) 1 2 3 4 5
>> 0 1.5 2.66666667 3.75 4.8
>>
>>    (-`%)@.((0 1)"_) 1 2 3 4 5
>> |rank error
>> |       (-`%)@.((0 1)"_)1 2 3 4 5
>> ----------------------------------------------------------------------
>> 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

Reply via email to