u^:_1 executes the inverse of u, but u&:_2, or any other value
of n containing a negative value, executes u first. I am just wondering why
'' [ (>:@[ smoutput@('+',":)) :. (<:@[ smoutput@('-',":)) ^:(_1) 0
-0
'' [ (>:@[ smoutput@('+',":)) :. (<:@[ smoutput@('-',":)) ^:(_1 0) 0
+0
-0
'' [ (>:@[ smoutput@('+',":)) :. (<:@[ smoutput@('-',":)) ^:(_2) 0
+0
-0
-_1
The +0 lines are the surprise executions of u. The execution seems to mean
business:
[: :. (smoutput@('inverse ',":))^:_1 'abc'
inverse abc
[: :. (smoutput@('inverse ',":))^:_1 _1 'abc'
|domain error
| [: :.(smoutput@('inverse ',":))^:_1 _1'abc'
I just can't imagine what the business might be.
Henry Rich
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm