GeneralizedLucas.m

版本 1.0.0.0 (593 字节) 作者: David Terr
GeneralizedLucas(n,a,b) returns the generalized Lucas number with index n and parameters a and b.
2.1K 次下载
更新时间 2004/10/25

无许可证

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.

引用格式

David Terr (2025). GeneralizedLucas.m (https://www.mathworks.com/matlabcentral/fileexchange/6086-generalizedlucas-m), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R12
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0