https://github.com/abhrankan-chakrabarti/fibonacci-calculator
A fast and flexible CLI tool to compute Fibonacci numbers with support for large inputs, scientific and hexadecimal formats.
https://github.com/abhrankan-chakrabarti/fibonacci-calculator
benchmarking bigintegers cli devtools fibonacci githubrepo high-performance math-tools number-theory opensource recursion rustlang scientific-computing
Last synced: 2 months ago
JSON representation
A fast and flexible CLI tool to compute Fibonacci numbers with support for large inputs, scientific and hexadecimal formats.
- Host: GitHub
- URL: https://github.com/abhrankan-chakrabarti/fibonacci-calculator
- Owner: Abhrankan-Chakrabarti
- License: mit
- Created: 2025-04-05T20:46:47.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-05T21:02:37.000Z (2 months ago)
- Last Synced: 2025-04-05T22:18:23.150Z (2 months ago)
- Topics: benchmarking, bigintegers, cli, devtools, fibonacci, githubrepo, high-performance, math-tools, number-theory, opensource, recursion, rustlang, scientific-computing
- Language: Rust
- Homepage: https://abhrankan-chakrabarti.github.io/fibonacci-calculator/
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fibonacci Calculator
A fast and efficient command-line tool written in Rust for calculating large Fibonacci numbers. Supports decimal, scientific notation, and hexadecimal input formats.
## Features
- Computes Fibonacci numbers using an optimized recursive algorithm
- Accepts input in:
- Decimal (e.g., `100`)
- Scientific notation (e.g., `1e2`)
- Hexadecimal (e.g., `0x64`)
- Optional flag to suppress printing the result
- Displays computation time## Installation
Clone the repository and build it using Cargo:
```bash
git clone https://github.com/Abhrankan-Chakrabarti/fibonacci-calculator.git
cd fibonacci-calculator
cargo build --release
```## Usage
```bash
cargo run --release -- [OPTIONS]
```## Options
- --no-print : Suppress printing the Fibonacci result
- --help : Show help message
- --version : Show version information
## Example
```bash
cargo run --release
``````
This program computes the n-th Fibonacci number.
Enter n : 1e3
F(1000) = 434665576869374564356885276750406258025646605173717804024817290895...
Elapsed time = 0.000021 sec
```## Author
Abhrankan Chakrabarti
## License
This project is licensed under the MIT License.