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.1.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.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_math_toolkit-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 26bd6bd405bc38eeb7a04a2f958bb59843b0172db187cf71a3f2a79b10fb442c
MD5 57f0c4ac567641131cdf58718ba61b50
BLAKE2b-256 7816f1e3b368abb06c0d31fe29afc436bee64a9a0e9bcf86a94db1972ac7effd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_math_toolkit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3c07e36920f8bf182673afd69497b318c47ee747d2ca719410499b14c66994d
MD5 fda0d59c01bdb8fea94927185c4e3cbb
BLAKE2b-256 e1140d4108981b5f9c3276451b7df5a7ad4dfe351ea488038085b70887aca1e0

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