Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
combinat[fibonacci] - compute Fibonacci numbers or polynomials
Calling Sequence
fibonacci(n)
fibonacci(n, x)
Parameters
n, x
-
algebraic expressions
Description
The call fibonacci(n) computes the nth Fibonacci number F(n), if n is an integer; otherwise it returns unevaluated.
The call fibonacci(n, x) computes the nth Fibonacci polynomial in x if n is an integer; otherwise it returns unevaluated.
The Fibonacci numbers are defined by the linear recurrence
The Fibonacci polynomials are defined similarly by
Note that .
The method used to compute F(n) is, however, based on the following identity: Let A be the two by two matrix . Observe that Thus F(n) can be computed quickly (in time instead of ) by computing using binary powering.
The generating function for F(n, x) is
The command with(combinat,fibonacci) allows the use of the abbreviated form of this command.
Examples
See Also
combinat
Download Help Document