f =. 13 :'+/!>:2*i.y' f =. 13 :'+/!>:2*i.y' f 4 5167 f [: +/ [: ! [: >: 2 * i.
13 : will provide tacit if possible. Linda Get Outlook for Android<https://aka.ms/ghei36> ________________________________ From: Programming <[email protected]> on behalf of Skip Cave <[email protected]> Sent: Saturday, July 7, 2018 9:37:03 PM To: [email protected] Subject: Re: [Jprogramming] Naming Tacit Verbs Nick, Ooops, sorry. When I pasted the formula for f, I left the dot off of the i at the end of the formula. Skip On Sat, Jul 7, 2018 at 8:00 PM Nick S <[email protected]> wrote: > Your example used i rather than i. when you created the verb. If this is a > cut and paste, that would be significant. > > On Sat, Jul 7, 2018, 14:08 Skip Cave <[email protected]> wrote: > > > I have a tacit verb that finds the sum of the factorials of the odd > > integers from 1 to 2n - 1: > > > > +/!>:2*i.1 > > > > 1 > > > > +/!>:2*i.2 > > > > 7 > > > > +/!>:2*i.3 > > > > 127 > > > > +/!>:2*i.4 > > > > 5167 > > > > I want to assign that tacit verb a name f: > > > > f=. +/!>:2*i > > > > f 1 > > > > 2 > > > > f 2 > > > > 3 3 > > > > f 3 > > > > 4 4 4 > > > > f 4 > > > > 5 5 5 5 > > > > > > My tacit verb doesn't work the same when I assign it a name. How do I > > modify the verb to allow me to name it? Why do I have to change my verb, > > just because I assign it a name? > > > > Skip > > > > > > Skip Cave > > Cave Consulting LLC > > ---------------------------------------------------------------------- > > For information about J forums see > > https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7C31360f6927ce4ba507c508d5e4736825%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636666106667704605&sdata=7LAOgAvX5Ev8%2FWyn%2BonBJKD22QNtERkRY2pf8xrITyg%3D&reserved=0 > ---------------------------------------------------------------------- > For information about J forums see > https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7C31360f6927ce4ba507c508d5e4736825%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636666106667704605&sdata=7LAOgAvX5Ev8%2FWyn%2BonBJKD22QNtERkRY2pf8xrITyg%3D&reserved=0 ---------------------------------------------------------------------- For information about J forums see https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7C31360f6927ce4ba507c508d5e4736825%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636666106667704605&sdata=7LAOgAvX5Ev8%2FWyn%2BonBJKD22QNtERkRY2pf8xrITyg%3D&reserved=0 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
