Post Reply 
Fibonacci sequence by recursive algorithm fail
04-21-2015, 05:49 AM
Post: #8
RE: Fibonacci sequence by recursive algorithm fail
(04-20-2015 07:57 PM)Tim Wessman Wrote:  The CAS is case sensitive. There is no function or keyword called "Return"
Code:

#CAS
    fibo(n):=
    begin
        // versión 0.0.1 April 20
            if n≤1 then 
                    return n;
            else
                    return (fibo(n-1)+fibo(n-2));
            end
    end;
#end

Font type differentiation of names is a trap that catches all practitioners.
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 - Gerald H - 04-21-2015 05:49 AM



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