🚀 Get Started

🔧 Installation

Clone the repository and build it with cargo:

git clone https://github.com/Tejtex/fib.git
cd fib
cargo build --release

The binary will be available at:

target/release/fib

▶️ Usage Examples

Here are some examples of how to use fib:

# Generate 20th Fibonacci number
./fib 20

# Generate 20 Fibonacci numbers (default a=1, b=1)
./fib 20 --list

# Generate 20 Fibonacci numbers (default a=1, b=1) and plot them on a logarithmic scale
./fib 20 --list --plot

# Generate a custom sequence with initial values -1, 1
./fib 20 --init -1,1 --list

# Generate sequence with custom coefficients
./fib 10 --init 1,1 --coeffs 1,3 --list

# Use 3 previous elements (n-params)
./fib 10 --init 1,1,2 --n-params 3 --coeffs 1,1,1 --list

# Benchmark the binary
./fib 1000 --bench

# Show details instead of a giant number
./fib 10000 --details

# Generate 20th Fibonacci number modulo 10
./fib 20 --mod-x 10

💡 Notes

Project licensed under MIT. Made with ❤️ in Rust.