Because its a test algorithm.
(y*2)+y was just a simple example (I don't actually need (y*2)+y) for
anything, I just made it up when writing to the list.

It could be
(y*2)+20
or
(y*9)-28

I am just trying to understand tacit verbs more, and I set myself
little algorithms to experiment in J.
I am just trying to understand the individual steps required to make a
tacit verb out of such simple calculations.




On Wed, Sep 10, 2008 at 10:37 PM, Markus Schmidt-Gröttrup
<[EMAIL PROTECTED]> wrote:
> Why not just
>
> r=: *&3
>
> Markus
> Ian Gorse schrieb:
>>
>> Hi list,
>>
>> Another learning question.
>>
>> I have a really simple monad verb that I wish to convert into a tacit
>> verb.
>>
>> I actually thought I finally understood conjuctions and bonding but
>> that don't seem to be the case.
>>
>> t =: 3 : '(y*2)+y'
>> t 10
>> 30
>>
>> What do I need to do I wanted to convert (y*2)+y that into a tacit verb?
>>
>> The way I was thinking was
>>
>> r=: (*&2)+(*&1)
>> r 10
>> 30
>>
>> Even though that has produced the correct answer, what is the best way?
>>
>> Thanks
>> ----------------------------------------------------------------------
>> 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