Skip to main content

Simple self-contained math utilities (factorial, Fibonacci, gcd, lcm, primes).

Project description

📦 pymathutils

A simple, self-contained Python math utilities module.
Includes factorial, Fibonacci, primes, gcd, and lcm.

Installation

git clone https://github.com/SuperHappycat/pymathutils.git
cd pymathutils

Usage

from pymathutils import factorial, fibonacci, is_prime, gcd, lcm

print(factorial(5))   # 120
print(fibonacci(7))   # 13
print(is_prime(29))   # True
print(gcd(12, 18))    # 6
print(lcm(12, 18))    # 36

Testing

⚠️ WARNING! Testing needs pytest installed.

python3 -m pip install pytest
python3 -m pytest tests      

License

MIT

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

fast_mathutils-0.1.0.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.

fast_mathutils-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fast_mathutils-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for fast_mathutils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f77cfdaa95ce99827f79cd188b45f0acbeeb15b2e20a7ac7b626535eec46c802
MD5 2e89017ceae85ccc0b7095e2732b3cef
BLAKE2b-256 83d091fca46bef54edd199b43f503cf534953fe29eef7587055384e4beddcc1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fast_mathutils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for fast_mathutils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5b07f5618b31c0a4d13112b39a985d3a7df114df155f3904f8b45f1e246b4e0
MD5 a2e2a5134d653b4dd134f825d7de4b71
BLAKE2b-256 854fc9575967706d140c6a16d29c2be905a445a44a1d2a13b1847ffbebea0f1e

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