On 8/5/07, John Randall <[EMAIL PROTECTED]> wrote:
> N=: (^&) (+/&.)
...
>   2 N
> +/&.(^&2)
...
> However, for odd x, you really need to take the absolute value of y,
> and I cannot see how to do it tacitly.
>
> Any ideas?

If I understand what you are asking for, this should do it:
   N=: (^&)(+&|/&.:)

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

Reply via email to