-/ 1 + i.5 is 1 - (2 - (3 - (4 - 5))) = 3 Not (1 - 2 + 3 - 4 + 5)
-----Original Message----- From: Christopher McIntosh [mailto:[email protected]] Sent: Wednesday, September 28, 2011 5:27 PM To: J Software - Chat Forum Subject: [Jchat] Question re: Insert adverb (/) According to the Dictionary, u/ y "applies the dyad u between items of y" Indeed, +/ 1 2 3 4 5 returns the expected result of 15, the sum of the first five non-zero integers. How do I use / to get the result _13 (which is 1 - 2 - 3 - 4 - 5) when applied to the list 1+i.5? I thought that I would simply apply it to the - dyad. But -/ 1 2 3 4 5 returns 3 (1 - 2 + 3 - 4 + 5), which is alternating between subtraction and addition. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
