Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Help with this problem please. Using MATLAB pls!:) Fn) The golden ratio, 0, is the limit of F(n+1) F(n) as n goes to infinity and
Help with this problem please. Using MATLAB pls!:)
Fn) The golden ratio, 0, is the limit of F(n+1) F(n) as n goes to infinity and F(n) is the n-th Fibonacci number, which can be shown to be exactly 1+v5 and is approximately 1.62. We say that G(n) = F(n+1) is the n-th approximation of the golden ratio, and G(1) = 1. It can be shown that o is also the limit of the continued fraction: 1 Q=1+ 1 1+ 1 1+ 1+ Write a recursive function with header [G] = myGoldenRatio (n), where G is the n-th approximation of the golden ratio according to the continued fraction recursive relationship. You should use the continued fraction approximation for the Golden ratio, not the G(n) F(n + 1)/F(n) definition. However for both definitions, G(1) = 1. Test Cases: >> format long >> G = myGoldenRatio (10) G = 1.618181818181818 >> (1 + sqrt (5))/2 ans 1.618033988749895Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started