Abstract

This chapter discusses the computational mathematics and programming involving Fibonacci numbers. The sequence of Fibonacci numbers is easily defined in the terms of fn and these definitions can be programmed directly into Mathematica through Fibonacci .m. This method of computing Fibonacci numbers is very inefficient. This inefficiency can be overcome by employing dynamic programming. The disadvantage of this method is that all intermediate Fibonacci numbers are stored as rules; entering these rules into the system and subsequent lookup is slow and uses a lot of storage space. As fn is of size n, the measure to use is n; the loop that computes fibc[n] is executed n times. Thereafter, using a closed formula for this purpose though slow in symbolic expansion is still a fast way of computing fn; to get all the digits right, the computation with a precision equal to the size of fn must be performed. Another way to compute fnis using the matrix method; the improvements derived by finding better formulae for matrix multiplications are specific to the computing of Fibonacci numbers. Finally, there is a range of variance in between the computational power of the above methods; the fastest algorithm being one involving the compute fn asymptotically.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.