GeneralizedLucas.m
by David Terr
20 Oct 2004
(Updated 25 Oct 2004)
GeneralizedLucas(n,a,b) returns the generalized Lucas number with index n and parameters a and b.
|
Watch this File
|
| File Information |
| Description |
For fixed integers a and b such that D = a^2 + 4*b is nonnegative, the sequence V_n = GeneralizedLucas(n,a,b) satisfies the recurrence
V_n = V_{n-1} + V_{n-2} and the initial conditions V_0 = 2 and V_1 = a. When a=b=1, this is the Lucas sequence. |
| Required Products |
Bioinformatics Toolbox
|
| MATLAB release |
MATLAB 6.0 (R12)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com