Incidentally, the monadic verbs I was testing were my shortcut trig functions.
So I enter 4 sin 1 NB. expecting an error 0.627572 NB. and I get sin(sin(sin(sin 1)))) Of course, I'd discounted that sin=: 1&o. So this "feature" should be highlighted a lot more, in my opinion, as it could easily throw a newcomer. I.e. if the newcomer is still with us... On 3 May 2014 14:22, Alex Giannakopoulos <[email protected]> wrote: > Hi R.E. - I don't know if that was meant to be an answer to me, but if it > was, I don't see how it covers it... sorry, maybe I'm being obtuse. > > The form of what the OP has posted, seems to me to be: > (m&v n&u) y > > This seems to reduce to: > > (m&v) ^:y (n&u y) > > OK, but can't see which part of the docs clarifies that. > > > > > > On 3 May 2014 12:19, R.E. Boss <[email protected]> wrote: > >> http://www.jsoftware.com/help/dictionary/d630n.htm >> >> >> R.E. Boss >> >> (Add your info to http://www.jsoftware.com/jwiki/Community/Demographics ) >> >> >> >> > -----Original Message----- >> > From: [email protected] [mailto:programming- >> > [email protected]] On Behalf Of Alex Giannakopoulos >> > Sent: zaterdag 3 mei 2014 12:05 >> > To: J Programming forum >> > Subject: Re: [Jprogramming] Simple tacit verbs problem >> > >> > Damn, I just tried prefixing a whole bunch of monadic verbs with an >> > integer, and it did indeed apply them N many times. What's the point of >> > the power function ^: then? More importantly, where exactly is this >> > documented? J never stops surprising me, though sometimes I wonder if >> > that's a good thing! >> > >> > >> > >> > On 30 April 2014 17:15, km <[email protected]> wrote: >> > >> > > Your func2 is a "hook", see the diagram at >> > > >> > > http://www.jsoftware.com/docs/help801/dictionary/dictf.htm >> > > >> > > You may also need to understand the dyadic case of m&v , see >> > > >> > > http://www.jsoftware.com/docs/help801/dictionary/d630n.htm >> > > >> > > --Kip Murray >> > > >> > > Sent from my iPad >> > > >> > > > On Apr 30, 2014, at 10:42 AM, Jon Hough <[email protected]> >> wrote: >> > > > >> > > > I can't understand why >> > > > func1 =. 3&+ @: (2&-) >> > > > func2 =. (3&+) (2&-) >> > > > >> > > > give different results as mondaic verbs. >> > > > func1 5 gives 0, which is what I would expect. >> > > > func2 5 gives 12, which I can't understand. >> > > > I would like to know what the difference is between func1 and func2. >> It >> > > is my understanding that for monadic verbs @: is optional, so doesn't >> add >> > > anything to the meaning of the whole verb. >> > > > Regards. >> > > > >> ---------------------------------------------------------------------- >> > > > 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 >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
