t =: 13 : '(y*2)+20' t 20 + 2 * ] t =: 13 : '(y*9)-28' t 28 -~ 9 * ]
2008/9/10 Ian Gorse <[EMAIL PROTECTED]> > 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 > -- Björn Helgason, Verkfræðingur Fugl&Fiskur ehf, Þerneyjarsundi 23, Hraunborgum Po Box 127,801 Selfoss , t-póst: [EMAIL PROTECTED] gsm: +3546985532 Landslags og skrúðgarðagerð, gröfuþjónusta http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) `. )----' (")_(")
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
