Skip to main content

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


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.1.0.tar.gz (54.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mathlib_hanthink-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file mathlib_hanthink-0.1.0.tar.gz.

File metadata

  • Download URL: mathlib_hanthink-0.1.0.tar.gz
  • Upload date:
  • Size: 54.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for mathlib_hanthink-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6fdc56234f643e3305bbc4d1a8601fa095c7e4c9313c67a2e88d31be1d42e19f
MD5 7f9c60de14854cca8698ee63a856c4f2
BLAKE2b-256 d486c16a1138c3cb759441478d6dce29c1272ccbfd6f2e08dd95182b393bf1f4

See more details on using hashes here.

File details

Details for the file mathlib_hanthink-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mathlib_hanthink-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1daa5831dcafe9f7da45717660d8f01df0c2ef7d5963f07379b41061eb3ff60
MD5 2297535cf419e066ad1a6bd0363666a1
BLAKE2b-256 e625899dd2b45d4dad9026b62edba6d019499adaeb3b5d258fd8fa4904930a9b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page