Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python assistance needed How Many Fibonacci Numbers are required To Accurately Estimate The Golden-Ratio? Fibonacci numbers are formed by adding the two preceding numbers as

python assistance needed
image text in transcribed
How Many Fibonacci Numbers are required To Accurately Estimate The Golden-Ratio? Fibonacci numbers are formed by adding the two preceding numbers as shown in the series. F = 1,1,2,3,5,8,13 .... The ratio of the Fibonacci number approaches o, the Golden-Ratio, for large values of n. In a well-documented Python program, hmwk3Q2.py, implement a program that calculates the F Fibonacci number and forms the ratio which approximates v. Inside a while-loop, your program will continue to calculate the next Fibonacci until a specified level of precision in the estimate is achieved, when compared to the exact value for the Golden-Ratio. The Golden-Ratio is Your program should accept and an integer M from the user. M represents the accuracy of the estimate by comparing your estimate with 10-M. That is, if M = 2, then your program should increment n until - 10-2 or 0.01. As a comment in your program list the number of Fibonacci terms required to attain accuracy to M-9. That is 10-9 Hints: Inside a while-loop continue to form another Fibonacci number until abs ( - )

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory Icdt 99 7th International Conference Jerusalem Israel January 10 12 1999 Proceedings Lncs 1540

Authors: Catriel Beeri ,Peter Buneman

1st Edition

3540654526, 978-3540654520

More Books

Students also viewed these Databases questions