On Fri, 7 Jul 2006, Mark D. Niemiec wrote:
However, 1 is not the right identity. (x^1 + 1) is 1 larger than x
for all x. It is only an identity if x e. _ __ _.

Um, right.  So I've messed up the example, I thought I would.  Sorry.

Second attempt.

   u =: (<:@:[ (+ + [ ^ ]) ])"0

This has 0 as its right identity.  The left identity is 1, but it works only
for positive numbers.

--
ambrus



----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to