In place of a maximum iteration count I had thought 9!:33 would enforce
an execution time limit.  I've never gotten it to work.

   9!:33]1
   -^:_[1



9!:32 y
9!:33 y Execution Time Limit. The execution time limit is a single
non-negative (possibly non-integral) number of seconds. The limit is
reduced for every line of immediate execution that exceeds a minimum
granularity, and execution is interrupted with a “time limit error” if a
non-zero limit is set and goes to 0.


> Date: Fri, 20 Jul 2012 16:56:16 +0100
> From: David Vaughan <[email protected]>
> To: Programming forum <[email protected]>
> Subject: [Jprogramming] Power convergence within limited iterations
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
> 
> I am looking a for a combination of v^:_ and v^:n, such that n is the
> maximum number of iterations, but if convergence occurs sooner than
> that, it should terminate. This could easily be achieved using a while
> loop, but I would prefer to be able to write it in the most 'J'-like
> way. 

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

Reply via email to