gray-code
Gray code Generation
A Python library for generating Gray codes, useful for:
- Error correction - Only one bit changes between consecutive values
- Digital communications - Reduced switching noise
- Karnaugh maps - Simplifying boolean algebra
Installation
pip install gray-code
Quick Start
from gray_code import fib
# Example: Calculate Fibonacci numbers
result = fib(10) # Returns 55
API Overview
Core Functions
fib(n)- Calculate the n-th Fibonacci number (example)
See Also
- gray-code-cpp - C++ implementation
License
This project is licensed under the MIT license - see the LICENSE file for details.
👉 Note
This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.