[Jprogramming] Power convergence within limited iterations

David Ward Lambert b49P23TIvg at stny.rr.com
Fri Jul 20 17:11:57 UTC 2012


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 <purpleblues13 at gmail.com>
> To: Programming forum <programming at jsoftware.com>
> Subject: [Jprogramming] Power convergence within limited iterations
> Message-ID: <8EAC5D30-BF7B-458C-B6EA-EC6FED2152AF at googlemail.com>
> 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. 



More information about the Programming mailing list