Roger Hui wrote:
> Can you provide a few convincing examples of the 
> use of the extended +: and *: ?

sorry I was wrong again. logic negation is 0&= not -. so that
      0&[EMAIL PROTECTED]/~ i.5
1 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
      0&[EMAIL PROTECTED]/~ i.5
1 1 1 1 1
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0

if +: is 0&[EMAIL PROTECTED] then it can be used in T block without giving 
domain error.
This also agrees with T block convection that anything non-zero to be true.

if. 3 +. 2 do.  NB. allow
if. 3 *. 2 do.
but
if. 3 +: 2 do.  NB. domain error if not extended
if. 3 *: 2 do.

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

Reply via email to