I cannot reproduce this bad behavior: ^: seems to work as advertised.  I
would suspect the verb scstep2.

ts =: 6!:2 , 7!:[EMAIL PROTECTED]
f=:3 : '-:y [ n=:>:n'
g=:3 : '-:y'

   n [ (f^:0 (1) [ n=:0)
0
   n [ (f^:1 (1) [ n=:0)
1
   n [ (f^:(,0) (1) [ n=:0)
0
   n [ (f^:(,1) (1) [ n=:0)
1
   n [ (f^:_ (1) [ n=:0)
1076

Note that even if there are no side effects, and there is convergence, the
iterations still appear to be done, something I would not have suspected.

   ts 'g^:1000 (1)'
0.0173254 2432
   ts 'g^:10000 (1)'
0.127052 2432
   ts 'g^:100000 (1)'
0.469632 2432
   ts 'g^:_ (1)'
0.014125 3904


Best wishes,

John


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

Reply via email to