MathGroup Archive 2007

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

Search the Archive

Re: Recursive function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83761] Re: Recursive function
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Fri, 30 Nov 2007 05:12:42 -0500 (EST)
  • References: <fim91k$rpi$1@smc.vnet.net>

Miguel wrote:
> How can I accelerate the execution of the recursive function?. Perhaps
> with Compile?

There is no magical Mathematica function that can speed up execution for 
you.  The function needs to be rewritten to speed it up---whether this 
is possible or not depends on the actual problem.

You might find it this article useful:
<http://en.wikipedia.org/wiki/Tail_recursion>

-- 
Szabolcs


  • Prev by Date: Re: FindInstance puzzler
  • Next by Date: Re: Possible bug in HamiltonianCycle
  • Previous by thread: Recursive function
  • Next by thread: Re: Recursive function