#rayon #high-precision #fibonacci #gmp #calculator

bin+lib fibnacci

fast high precision fibonacci calculator using rayon and gmp

4 releases (2 breaking)

0.4.0 Sep 14, 2022
0.3.1 Sep 14, 2022
0.3.0 Sep 14, 2022
0.2.0 Sep 14, 2022

#1452 in Math

MIT license

7KB
71 lines

fibonacci

simple concurrent & blazingly fast high precision fibonacci calculator.

thanks to rayon's join and rust-gmp's thread safe gmp wrapper.

Usage

$ fibonacci -r 1..=3,5
1: 1
2: 1
3: 2
5: 5
$ fibonacci -n 114
298611126818977066918552
$ fibonacci --help
...

TODO

  • graceful range parse by nom

Dependencies

~5MB
~95K SLoC