Skip to main content

Math functions that almost work

Project description

ChaosMath

Math. But Unstable.

chaosmath is a Python module that provides mathematical functions which are almost correct.
Results may vary depending on randomness, time, and pure bad vibes.

Deterministic? No
Accurate? Maybe
Entertaining? Absolutely


Installation

  pip install chaosmath

or

  git clone https://github.com/prathambhandary/ChaosMath.git
  cd ChaosMath
  pip install .

Features

  • random_error() → excuses when things go wrong (over 2500+ excuses)
  • pi() → returns π-ish values
  • sqrt(x) → usually right, sometimes not
  • add(a, b) → addition with attitude
  • multiply(a, b) → multiplication with chaos
  • CLI support for terminal chaos

Examples

import chaosmath as cm

print("ChaosMath Example Usage:")
print(f"Random Error Excuse: {cm.random_error()}")
print(f"Approximate Pi: {cm.pi()}")
print(f"Square root of 16: {cm.sqrt(16)}")
print(f"Addition of 2 and 2: {cm.add(2, 2)}")
print(f"Multiplication of 3 and 3: {cm.multiply(3, 3)}")

Disclaimer

This is not a bug. This is the feature.

If the output is wrong, confusing, or deeply disappointing — chaosmath is functioning correctly.

Do not use for:

  • Exams
  • Production
  • Finance
  • Space travel
  • Anything you care about

You have been warned.

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

chaosmath-0.1.0.tar.gz (42.5 kB view details)

Uploaded Source

Built Distribution

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

chaosmath-0.1.0-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chaosmath-0.1.0.tar.gz
Algorithm Hash digest
SHA256 32775fd62ed521c6ee3b9fe394cfb4e4430fccb238865b5fc62358f50265dff7
MD5 f225497416986d467a8928e0397d55e1
BLAKE2b-256 23a69fb20a9dff54f0ec56a100fa756e73836bfc7aa51b54695b447791bc44dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chaosmath-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 42.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for chaosmath-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 611b7de21725d01b8a3e115702214f255af885077c1d59d03cb4c1479f5792a9
MD5 ccde35e3d5d777fca097db7b579714ee
BLAKE2b-256 f8fe4c65ce9386572324b7e6481f8edf054f392c8c490ba623a8fcc75f8cadbe

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