A fast and efficient command-line tool written in Rust for calculating large Fibonacci numbers. Supports decimal, scientific notation, and hexadecimal input formats.
- Computes Fibonacci numbers using an optimized recursive algorithm
- Accepts input in:
- Decimal (e.g.,
100) - Scientific notation (e.g.,
1e2) - Hexadecimal (e.g.,
0x64)
- Decimal (e.g.,
- Optional flag to suppress printing the result
- Displays computation time
Clone the repository and build it using Cargo:
git clone https://github.com/Abhrankan-Chakrabarti/fibonacci-calculator.git
cd fibonacci-calculator
cargo build --releasecargo run --release -- [OPTIONS]-
--no-print : Suppress printing the Fibonacci result
-
--help : Show help message
-
--version : Show version information
cargo run --releaseThis program computes the n-th Fibonacci number.
Enter n : 1e3
F(1000) = 434665576869374564356885276750406258025646605173717804024817290895...
Elapsed time = 0.000021 sec
Abhrankan Chakrabarti
This project is licensed under the MIT License.