Post Reply 
Fibonacci sequence by recursive algorithm fail
04-21-2015, 01:57 PM
Post: #9
RE: Fibonacci sequence by recursive algorithm fail
I think a case could be made that a CAS program is not a good construct for this kind of algorithm. Personally, I think that CAS programs are better suited for CAS exclusive purposes (remaining within the CAS environment).

I get that recursive activity is the point of this presentation, but the steps involved are better implemented in a Home program, rather than a CAS variable. The CAS approach, in this case, is a bit like building a pipeline to a beer brewery across town, rather than just using containers to get the desired beer home.

Here is a simple means to the same end, which can be embellished as necessary, or if needed as a subroutine, all the while avoiding CAS restrictions :

Code:

EXPORT fibo(n)
BEGIN
  return n!;  // or substitute Gamma(n+1) for n! 
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Fibonacci sequence by recursive algorithm fail - DrD - 04-21-2015 01:57 PM



User(s) browsing this thread: 1 Guest(s)