On Thu, Feb 5, 2009 at 12:47 PM, Steven Taylor <[email protected]> wrote:
>    m=:(+/ % #)
>    1 2 3(+/@:(^:@(]...@-@(m...@]))))4 5 6
> |syntax error
> |   |1 2 3(+/@:(^:@(]...@-@(m...@]))))4 5 6

What was this supposed to do?
   m  4 5 6
5
   -...@m 4 5 6
_5
   ]...@-@m 4 5 6
_5

Hypothetically speaking, v^:_5 would
find the inverse of v and apply that inverse
five times.  But I am not sure what the
inverse of m would be.

And then there's all those extra @ signs
and extra parenthesis -- I am just lost here.

> For ^:@ it's be good to say left of @ is a monad to remove some brackets.

^:@ does not make sense to me.

Note, however that ^@ does make sense.  And the
expression would even work then:

   1 2 3(+/@:(^@(]...@-@(m...@]))))4 5 6
0.00673795

But of course this expression could be simplified:

   1 2 3 ^...@-@m...@] 4 5 6
0.00673795

Or:
   ^m-4 5 6
0.00673795

> I know that 1 2 3 is not used, but this is part of a larger formula.

Maybe we should start there?

What does this larger formula do?

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

Reply via email to