Metadata-Version: 2.4
Name: purealgebra
Version: 0.1
Summary: Pure Python Algebra Library
Home-page: https://github.com/MUSTAKIMSHAIKH2942/purealgebra
Author: Mustakim Shaikh
Author-email: mustakim.shaikh.prof@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-python
Dynamic: summary


# purealgebra

[![CI](https://github.com/MUSTAKIMSHAIKH2942/purealgebra/actions/workflows/ci.yml/badge.svg)](https://github.com/MUSTAKIMSHAIKH2942/purealgebra/actions/workflows/ci.yml)
[![PyPI version](https://badge.fury.io/py/purealgebra.svg)](https://badge.fury.io/py/purealgebra)

A minimal pure Python algebra library (no dependencies).

## Installation

```bash
pip install purealgebra
```

## Development install

```bash
git clone https://github.com/MUSTAKIMSHAIKH2942/purealgebra.git
cd purealgebra
pip install .
```

## Usage

```python
from purealgebra import add, matrix_multiply, poly_eval

print(add(2, 3))  # 5

A = [[1, 2], [3, 4]]
B = [[2, 0], [1, 2]]
print(matrix_multiply(A, B))

poly = [1, 0, 3]  # 1 + 0*x + 3*x^2
print(poly_eval(poly, 2))  # 13
```

## Modules

- Basic: add, subtract, multiply, divide
- Linear Algebra: transpose, dot_product, matrix_multiply, determinant, inverse_2x2
- Polynomial: poly_add, poly_eval, poly_derivative
- Solver: gaussian_elimination

## Run Tests

```bash
pip install pytest
pytest tests
```

## License

MIT License.
