Skip to main content

pijush-calculator

Advanced, dependency-free Python numerical engine for calculator, scientific-math, statistics, and reusable application tooling.

Engine capabilities

  • Basic arithmetic: add, subtract, multiply, divide, modulo, power, percentage
  • Numeric utilities: absolute, minimum, maximum, average/mean, sum, product, clamp, reciprocal, square, cube
  • Roots: square root and cube root
  • Number theory: factorial, GCD, LCM, combinations, permutations
  • Trigonometry: sine, cosine, tangent, secant, cosecant, cotangent
  • Inverse trigonometry: arcsine, arccosine, arctangent
  • Hyperbolic sine, cosine, tangent
  • Logarithms and exponentials
  • Multi-value hypotenenuse calculation
  • Statistics: median, population variance, standard deviation, range
  • Floating-point comparison with configurable tolerance
  • Explicit domain, finite-result, and zero-division validation
  • Python 3.9+
  • Zero runtime dependencies

Installation

pip install pijush-calculator

Usage

from pijush_calculator import add, square_root, factorial, median

print(add(2, 3))
print(square_root(144))
print(factorial(6))
print(median(9, 2, 7, 4, 5))

API groups

Group Functions
Arithmetic add, subtract, multiply, divide, modulo, power, percentage
Utilities absolute, minimum, maximum, average, mean, sum_values, product, clamp, reciprocal
Roots square_root, cube_root, square, cube
Number theory factorial, gcd, lcm, combinations, permutations
Trigonometry sine, cosine, tangent, secant, cosecant, cotangent
Inverse trig arcsine, arccosine, arctangent
Scientific logarithm, natural_log, exponential, hypot
Statistics median, variance, standard_deviation, range_values

Division and modulo by zero raise ZeroDivisionError; invalid mathematical domains raise ValueError.

Development

python -m pip install -e .
python -m pytest
python -m build

Publishing

The package is published to PyPI through GitHub Actions using Trusted Publishing (OIDC) where configured. Published versions are immutable and require a new version for each release.

Package information

Property Value
Package pijush-calculator
PyPI https://pypi.org/project/pijush-calculator/
Repository https://github.com/TEJAS-MK2/Calculator
Runtime dependencies None
Supported Python 3.9+
License MIT

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pijush_calculator-0.6.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

pijush_calculator-0.6.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pijush_calculator-0.6.0.tar.gz.

File metadata

  • Download URL: pijush_calculator-0.6.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for pijush_calculator-0.6.0.tar.gz
Algorithm Hash digest
SHA256 48a9dcdc139c474bb516c0987b805b01a95c5c04eae1ddfb23c29985e9ef097c
MD5 92bd4ff3f77427167ac599983d1b3601
BLAKE2b-256 cd08475e6d6d6546be2c9c85724af3abee164b7e11cead1f8edb5b5b6ae0e151

See more details on using hashes here.

File details

Details for the file pijush_calculator-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pijush_calculator-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eacdd0284f26c2f8100273d3e16a9e12e05ecc7e2d4a5ffc0f4b25a54485663c
MD5 1dbda49233512e089b059a7b70654fad
BLAKE2b-256 3a0ba5ae8a576432f2570c83c16ba267f5594ee0e4f7d8e38f051e1552007c87

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 Sentry Error logging StatusPage Status page