You only need to create this one table. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Lettow, Kenneth Sent: Monday, November 14, 2011 12:26 PM To: Programming forum Subject: Re: [Jprogramming] table challenge in simple J
Is this for the addition table only, or would you like other function tables (mult, power etc.)? -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Linda Alvord Sent: Monday, November 14, 2011 12:19 PM To: 'Programming forum' Subject: Re: [Jprogramming] table challenge in simple J Here is the challenge. Use the arguments a and b and define a single tacit function in "simple J" that does not use @ and provides the same result. (Use forks, hooks and rank) Then the result of: a table b should match the result in the Dictionary or the result attached to this message. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Raul Miller Sent: Monday, November 14, 2011 9:20 AM To: Programming forum Subject: Re: [Jprogramming] table challenge in simple J Which conditions are not satisfied? -- Raul On Mon, Nov 14, 2011 at 8:52 AM, Linda Alvord <[email protected]> wrote: > This does not satisfy the conditions of the problem. Also, wait until > November 18th for more hints. Thanks. > > Linda > > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Raul Miller > Sent: Monday, November 14, 2011 7:41 AM > To: Programming forum > Subject: Re: [Jprogramming] table challenge in simple J > > over=:[: ({.;}.) [: ": , > by=: (' ' ; [: ,. [),.] > > -- > Raul > > 2011/11/13 Linda Alvord <[email protected]>: >> In the dictionary in the section on "Verbs and Adverbs" there are two >> definitions designed to produce a table: >> >> >> >> over=:({.;}.)@":@, >> >> by=:' '&;@,.@[,.] >> >> a=: 2 3 5 >> >> b=: 0 1 2 3 >> >> a by b over a +/ b >> >> --T-------┐ >> >> │ │0 1 2 3│ >> >> +-+-------+ >> >> │2│2 3 4 5│ >> >> │3│3 4 5 6│ >> >> │5│5 6 7 8│ >> >> L-+-------- >> >> >> >> Here is the challenge. Use the arguments a and b and define a single >> tacit function in "simple J" that does not use @ and provides the same >> result. >> >> >> >> a table b >> >> --T-------┐ >> │ │0 1 2 3│ >> +-+-------+ >> │2│2 3 4 5│ >> │3│3 4 5 6│ >> │4│4 5 6 7│ >> L-+-------- >> >> >> >> To give a little time for thought, do not post a solution until >> November 18th. I'll post mine then too. >> >> >> >> Linda >> >> --------------------------------------------------------------------- >> - 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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
