David Ward Lambert pointed out the known pitfall that occurs using  : 13 :

 

Would these examples help in correcting the problem?

 

   why=: 13 :'y+y'  NB. wrong

   why

+

   why 3

3

   why=: 13 :'y-y'  NB. right

   why

-~

   why 3

0

   why=: 13 :'y*y'  NB. wrong

   why

*

   why 3

1

   why=: 13 :'y%y'  NB. right

   why

%~

   why 3

1

   why=: 13 :'y+y+y' NB. wrong

   why

] + +

   why 3

6

   why=: 13 :'y-y-y'  NB. right

   why

] - -~

   why 3

3

   why=: 13 :'y*y*y'  NB. wrong

   why

] * *

   why 3

3

   why=: 13 :'y%y%y'  NB. right

   why

] % %~

   why 3

3

 

Linda   

   

 

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

Reply via email to