Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Recursion limit: a good idea to ignore?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82232] Re: Recursion limit: a good idea to ignore?
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 16 Oct 2007 03:18:49 -0400 (EDT)
  • References: <feutsm$st$1@smc.vnet.net>

Hi,

if you know that your calculation comes to an
end ignore it with

Block[{$RecursionLimit=Infinity},
   yourCode
]

Regards
   Jens

Will Robertson wrote:
> Hello,
> 
> I've written a potentially inefficient algorithm to combine multiple
> joined polygons into a single one. On large plots I get the warning
> "$RecursionLimit::reclim: Recursion depth of 256 exceeded." and a
> bunch of errors because of this.
> 
> Now, should I try and re-write my program (the speed of it is not
> entirely critical) to avoid recursion or is it "okay" to locally
> remove the recursion limit for such code?
> 
> I'll try and post an actual example of my code once I've tidied it up
> a little.
> 
> Many thanks,
> Will
> 
> 


  • Prev by Date: Integers networks
  • Next by Date: Re: Applying Additive Gaussian Noise with standard deviation
  • Previous by thread: Re: Recursion limit: a good idea to ignore?
  • Next by thread: Re: Recursion limit: a good idea to ignore?