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 valuessqrt(x)→ usually right, sometimes notadd(a, b)→ addition with attitudemultiply(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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32775fd62ed521c6ee3b9fe394cfb4e4430fccb238865b5fc62358f50265dff7
|
|
| MD5 |
f225497416986d467a8928e0397d55e1
|
|
| BLAKE2b-256 |
23a69fb20a9dff54f0ec56a100fa756e73836bfc7aa51b54695b447791bc44dd
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
611b7de21725d01b8a3e115702214f255af885077c1d59d03cb4c1479f5792a9
|
|
| MD5 |
ccde35e3d5d777fca097db7b579714ee
|
|
| BLAKE2b-256 |
f8fe4c65ce9386572324b7e6481f8edf054f392c8c490ba623a8fcc75f8cadbe
|