GeneralizedFibonacc​i.m

版本 1.0.0.0 (608 字节) 作者: David Terr
GeneralizedFibonacci(n,a,b) returns the generalized Fibonacci number.
2.8K 次下载
更新时间 2004/10/22

无许可证

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.

引用格式

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

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

Community Treasure Hunt

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

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