[Jprogramming] Naming Tacit Verbs
Linda Alvord
lindaalvord36 at outlook.com
Sun Jul 8 04:03:57 UTC 2018
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 <programming-bounces at forums.jsoftware.com> on behalf of Skip Cave <skip at caveconsulting.com>
Sent: Saturday, July 7, 2018 9:37:03 PM
To: Programming at jsoftware.com
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 <simicich at gmail.com> 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 <skip at caveconsulting.com> 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=https%3A%2F%2Ffd.xuwubk.eu.org%3A443%2Fhttp%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=https%3A%2F%2Ffd.xuwubk.eu.org%3A443%2Fhttp%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=https%3A%2F%2Ffd.xuwubk.eu.org%3A443%2Fhttp%2Fwww.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7C31360f6927ce4ba507c508d5e4736825%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636666106667704605&sdata=7LAOgAvX5Ev8%2FWyn%2BonBJKD22QNtERkRY2pf8xrITyg%3D&reserved=0
More information about the Programming
mailing list