If the hook (+%) was meant to be read as the sum of the inverses then this 
would work

+/@:%  1 2 3 4 5 6

but I agree with Raul's solution as the question was originally written.
 
cheers, bob

On 2011-09-12, at 6:08 AM, Raul Miller wrote:

> On Mon, Sep 12, 2011 at 8:57 AM, David Vaughan
> <purpleblue...@googlemail.com> wrote:
>> I'm trying to achieve this calculation:
>> %1+%2+%1+%1+%4+%1...
>> 
>> Essentially I want to insert +% in between each item in a list. I thought 
>> this could be achieved with / or @ but I seem to be wrong.
>> 
>> Any help would be appreciated.
> 
>   (+%)/1 2 1 1 4 1
> 1.39286
>   %(+%)/1 2 1 1 4 1
> 0.717949
> 
> -- 
> Raul
> ----------------------------------------------------------------------
> 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