MathUtils
A simple Python package providing basic mathematical utilities.
Features
- Arithmetic Operations: Basic functions like add, subtract, multiply, and divide
- Statistical Functions: Calculate mean, median, mode, and standard deviation
- Vector Operations: Perform dot product, cross product, and calculate vector magnitude
Installation
You can install the package from PyPI:
pip install arunmoorthy-mathutils
Or install directly from the repository:
git clone https://github.com/yourusername/mathutils.git
cd mathutils
pip install -e .
Quick Start
import mathutils
# Arithmetic
result = mathutils.add(5, 3) # 8
# Statistics
data = [1, 2, 3, 4, 5]
avg = mathutils.mean(data) # 3.0
# Vectors
v1 = [1, 2, 3]
v2 = [4, 5, 6]
dot = mathutils.dot_product(v1, v2) # 32
For more examples, check the examples directory.
Documentation
For detailed documentation, see the docs directory or visit our documentation site.
Development
Prerequisites
- Python 3.7 or higher
Setting up the development environment
# Clone the repository
git clone https://github.com/yourusername/mathutils.git
cd mathutils
# Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install development dependencies
pip install -e ".[dev]"
Running tests
pytest
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for arunmoorthy-mathutils 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| arunmoorthy_mathutils-0.1.0.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arunmoorthy_mathutils-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.7 kB
Release files / arunmoorthy_mathutils-0.1.0.tar.gz
| Download URL | arunmoorthy_mathutils-0.1.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b96e226ff3bf2b28481ddc191ac716707a43930ca448b22160d58fff287fce9d
|
|
BLAKE2b-256 checksum How to use checksums |
cc760ed9835d2b708f1b99f74cf1cdc6ed14fbedd8066a096239ab7d91f0ce5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|
Release files / arunmoorthy_mathutils-0.1.0-py3-none-any.whl
| Download URL | arunmoorthy_mathutils-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea4d6b42ff2197dad691be352818b7270b326b53826941a33889e306726b606d
|
|
BLAKE2b-256 checksum How to use checksums |
686fd3cb3c3e41eb0a5453ff7a59d3e314be3e0aaa76c091564879ce2b2e47f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|