Skip to main content

A tiny, multi-module math toolkit with basic arithmetic, algebra, stats, and geometry (library-only).

Project description

simple-math-toolkit (library-only)

A tiny Python math library with a few modules:

  • arithmetic: add, sub, mul, div
  • algebra: quadratic_roots
  • stats: mean, median
  • geometry: area_circle, perimeter_rectangle

Install

pip install simple-math-toolkit

Use from Python

from simple_math_toolkit.arithmetic import add, div
from simple_math_toolkit.algebra import quadratic_roots
from simple_math_toolkit.stats import mean, median
from simple_math_toolkit.geometry import area_circle, perimeter_rectangle

print(add(2, 3))                      # 5
print(div(10, 4))                     # 2.5
print(quadratic_roots(1, -3, 2))      # (1.0, 2.0)
print(mean([1, 2, 3, 4]))             # 2.5
print(median([1, 2, 3, 4]))           # 2.5
print(area_circle(1.5))               # 7.0685...
print(perimeter_rectangle(2.0, 3.0))  # 10.0

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

simple_math_toolkit-0.1.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

simple_math_toolkit-0.1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file simple_math_toolkit-0.1.2.tar.gz.

File metadata

  • Download URL: simple_math_toolkit-0.1.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for simple_math_toolkit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3d566bdbbcaaf613ee94b9b6c0ece1caa38762f5f9a171b67b31393d84f3d1d9
MD5 18f5151143883ea8316418331a1a67e8
BLAKE2b-256 0de862b08b84f5d992fb20a8b0656cd18c4c0488f32cc2f2ab366a0d37ba9763

See more details on using hashes here.

File details

Details for the file simple_math_toolkit-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_math_toolkit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4650253aadbc60256307c60271b30954fa1b16fe28eacfa29d4ab4cae0d4a5c2
MD5 b44d346a437c98b9903a089b8daf04bd
BLAKE2b-256 b5eb5cd513210ab2728e732cfda3b0603c0fc6bc17e6bef560853410f30727cf

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