Fibonacci

버전 1.0.0 (1.13 KB) 작성자: Toby
Anonymous function to return the desired number(s) of the Fibonacci sequence. Function is zero-based; i.e. fib(0) = 0, fib(1) = 1, etc.
다운로드 수: 27
업데이트 날짜: 2020/3/18

라이선스 보기

Anonymous function to return the desired number(s) of the Fibonacci sequence. Function is zero-based; i.e. fib(0) = 0, fib(1) = 1, etc.
fib = @(x) round(((1+sqrt(5))./2).^x./sqrt(5));

인용 양식

Toby (2024). Fibonacci (https://www.mathworks.com/matlabcentral/fileexchange/74580-fibonacci), MATLAB Central File Exchange. 검색됨 .

Dasdan, Ali. Twelve Simple Algorithms to ComputeFibonacci Numbers. KD Consulting, 2018.

MATLAB 릴리스 호환 정보
개발 환경: R2012a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0