A class-based Python utility package for arithmetic, geometric sequences, and trigonometry
Project description
mathlib-hanthink
A simple class-based Python math utility package for packaging and PyPI distribution practice.
Features
- Basic arithmetic operations
- Geometric sequence utilities
- Trigonometry utilities
- Pytest-based tests
- PyPI-ready package structure
Installation
pip install mathlib-hanthink
Usage
from mathlib_hanthink.arithmetic import Arithmetic
from mathlib_hanthink.geometric import GeometricSequence
from mathlib_hanthink.trigonometry import Trigonometry
calc = Arithmetic(10, 5)
print(calc.add())
print(calc.subtract())
print(calc.multiply())
print(calc.divide())
seq = GeometricSequence(2, 3, 4)
print(seq.generate())
print(seq.nth_term(3))
print(seq.sum())
trig = Trigonometry(30)
print(trig.sin())
print(trig.cos())
print(trig.tan())
Development
uv sync --group dev
uv run pytest -v
uv build
Project Structure
mathlib-hanthink/
├── src/
│ └── mathlib_hanthink/
├── tests/
├── pyproject.toml
├── README.md
├── CHANGELOG.md
└── LICENSE
Purpose
This project was created to practice Python package structure, testing, building, and PyPI distribution.
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
mathlib_hanthink-0.2.0.tar.gz
(55.1 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 mathlib_hanthink-0.2.0.tar.gz.
File metadata
- Download URL: mathlib_hanthink-0.2.0.tar.gz
- Upload date:
- Size: 55.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99dc9f89729d7ed30f77b231602c085133a76490dc241272f6c6b947c132af5f
|
|
| MD5 |
b2c9b34ed1f64273cbb54db6456c7724
|
|
| BLAKE2b-256 |
e1aafc2afdedd13bd84796254382429b09690b18179e0f41e78ee1ed8c82091d
|
File details
Details for the file mathlib_hanthink-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mathlib_hanthink-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85b2f0f5b10ab7f0d44d85cb78a0a858851c3d54cf27258c384aafb188b08bb8
|
|
| MD5 |
9a35a4aa7ec48b1f639181327c646447
|
|
| BLAKE2b-256 |
cadee8852a58d7fba492bd2fbce54d136ec2472f0a465d3644bde1540546682d
|