Question: Create the golden mean from the fibonacci sequence algorithm in scilab: clear all Nmax = 20; Fib = zeros(Nmax,1); // blank vector for input //

Create the golden mean from the fibonacci sequence algorithm in scilab:

clear all Nmax = 20; Fib = zeros(Nmax,1); // blank vector for input // first two elements golden (1) = 1; Fib(2) = 1; n = 2; // current number for n = 3:Nmax Fib(n) = Fib(n-1)+Fib(n-2); // next value in sequence end disp(Fib) 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!