Assigning to a name adds an implied set of parentheses. Thus if you write
f =. +/!>:2*i. When you execute f 5 you will get the same result as if you had executed (+/!>:2*i.) 5 Try it and see. Henry Rich On 7/7/2018 5:07 PM, Skip Cave 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 http://www.jsoftware.com/forums.htm
--- This email has been checked for viruses by AVG. https://www.avg.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
