Skip to content

A Python math library where π lies, calculus panics, and every function has an excuse — chaos guaranteed.

License

Notifications You must be signed in to change notification settings

prathambhandary/ChaosMath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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() → weapon-grade excuses when things go wrong (2500+ and growing)
  • pi() → returns π-ish values depending on the universe’s mood
  • sqrt(x) → usually correct, occasionally spiritually incorrect
  • add(a, b) → addition with attitude and possible delusions
  • multiply(a, b) → multiplication, but quantum-unstable
  • divide(a, b) → division that may anger the laws of physics
  • integrate(expr, var) → attempts calculus, fails with confidence
  • differentiate(expr, var) → derivative denied with an excuse
  • solve(equation) → solving is attempted, success is optional
  • CLI support → unleash chaos directly from your terminal

Examples

import chaosmath as cm

print(f"[ERROR]: {cm.random_error()}")
# [ERROR]: Memory said 'nah'

print(cm.integrate("x^2"))
# ⚠️ CHAOS MATH: Debugger learned violin
# ∫ x^2 dx = ??? (Debugger learned violin)

print(f"Pi: {cm.pi()}")
# Pi: 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.

About

A Python math library where π lies, calculus panics, and every function has an excuse — chaos guaranteed.

Topics

Resources

License

Stars

Watchers

Forks

Languages