Computes the generalized Fibonacci numbers as vectorized code.
이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
Fibonacci sequence
fibonacci.m
This is a simple GNU Octave/Matlab function to compute the Fibonacci sequence or numbers. Function is vectorized.
Syntax
FIBONACCI(N) computes the Fibonacci number of N. N can be a scalar, vector or matrix of integers. Negative numbers are allowed (negafibonacci).
FIBONACCI without input argument returns the first 10 numbers of the Fibonacci sequence.
Examples
> fibonacci(7)
13
> fibonacci(0:10)
0 1 1 2 3 5 8 13 21 34 55
Documentation
Type doc fibonacci or help fibonacci for syntax and options. See also users comments and rating on .
References
https://en.wikipedia.org/wiki/Fibonacci_sequence
Author
인용 양식
François Beauducel (2026). Fibonacci sequence (https://github.com/beaudu/fibonacci/releases/tag/v1.0), GitHub. 검색 날짜: .
도움
도움 받은 파일: Fibonacci.m
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.0 |
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
