No BSD License  

Highlights from
GeneralizedFibonacci.m

5.0

5.0 | 1 rating Rate this file 6 Downloads (last 30 days) File Size: 1.47 KB File ID: #6085

GeneralizedFibonacci.m

by

 

20 Oct 2004 (Updated )

GeneralizedFibonacci(n,a,b) returns the generalized Fibonacci number.

| Watch this File

File Information
Description

For fixed integers a and b with D = a^2 + 4*b positive, the sequence U_n = GeneralizedFibonacci(n,a,b) satisfies the recurrence U_n = a U_{n-1} + b U_{n-2} with initial conditions U_0 = 0 and U_1 = 1. If a=b=1, this is the Fibonacci sequence.

Required Products Communications Blockset
MATLAB release MATLAB 6.0 (R12)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
23 Jan 2005 Srikanth Akkiraju  

Contact us