Pure Python Algebra Library
Project description
purealgebra
A minimal pure Python algebra library (no dependencies).
Installation
pip install purealgebra
Development install
git clone https://github.com/MUSTAKIMSHAIKH2942/purealgebra.git
cd purealgebra
pip install .
Usage
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
pip install pytest
pytest tests
License
MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
purealgebra-0.1.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file purealgebra-0.1.tar.gz.
File metadata
- Download URL: purealgebra-0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34382374ab070c5798d97e2847ebe92bf3bc66d0fd260abcaec140ede0974f0f
|
|
| MD5 |
dd13c8716d99875b4b9b94a3c266d561
|
|
| BLAKE2b-256 |
50e763543eed226dce29b0beb71be15e6914095fc9311185a1c4e311cbb37132
|
File details
Details for the file purealgebra-0.1-py3-none-any.whl.
File metadata
- Download URL: purealgebra-0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
639c17af5f1bda976c51454278292b68a90f2d618844dc805209edf1af314716
|
|
| MD5 |
bb6ec2b9a639e97c92e149b285cee3e1
|
|
| BLAKE2b-256 |
5bd5ad41a31c7a6fcca4c06c1a6e3bed6f99b1659a6e085bdadbb40938a6ca5a
|