+/_10 _12 _13.5
_35.5

On 1/27/2010 12:21, Aai wrote:
> Another manipulation that comes close
>
>     -/`(-~/)@.(>&|/)"1 ] 2]\ b, b-+/\a
> _10 _12 _14 16 18
>
> Don't understand _13.5 though.
>
>
> Hallo Alex Rufon, je schreef op 27-01-10 16:54:
>> Hello.
>>
>> I solve this problem by doing it by brute force (with a loop) but I was 
>> hoping it can be done without one. ☺
>>
>> So you have the following data:
>>     [a=. 2 * 5 + i. 5
>> 10 12 14 16 18
>>     [b=. 35.5
>> 35.5
>>
>> I want to subtract a from b progressively until b is 0 so from the data 
>> above I'll get the following results:
>> _10 _12 _13.5 16 18
>>
>> Any help is appreciated.
>>
>> Thanks.
>>
>> r/Alex
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to