https://github.com/visualfc/fibutil
Golang Fibonacci number Library
https://github.com/visualfc/fibutil
Last synced: about 2 months ago
JSON representation
Golang Fibonacci number Library
- Host: GitHub
- URL: https://github.com/visualfc/fibutil
- Owner: visualfc
- License: bsd-2-clause
- Created: 2013-01-28T12:30:57.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-02-01T00:53:33.000Z (about 13 years ago)
- Last Synced: 2025-07-29T11:59:08.238Z (9 months ago)
- Language: Go
- Size: 97.7 KB
- Stars: 17
- Watchers: 7
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
fibutil
=======
Golang Fibonacci numbers library
Fibonacci numbers integer sequence:
0 1 1 2 3 5 8 13 21 34 55 89 144 ...
-21 13 -8 5 -3 2 -1 1 0 1 1 2 3 5 8 13 21 ...
### Install
go get -v github.com/visualfc/fibutil
### fibutil/fib
func fib.Fib(n int64) *big.Int
func fib.FastFib(n int64) *big.Int
func fib.FibList(n1, n2 int64) []string
### fibutil
Fibonacci number util
**Usage:**
fibutil n :fibonacci number
fibutil n1 n2 :fibonacci number list
**Example:**
fibutil 10 => 55
fibutil -10 10 => [-55 34 -21 13 -8 5 -3 2 -1 1 0 1 1 2 3 5 8 13 21 34 55]
fibutil 299 => 137347080577163115432025771710279131845700275212767467264610201
### License:
BSD License