Minimalist CLI for math & cryptography exploration 🦊
Project description
FoxMath 🦊
Minimalist CLI for math & cryptography exploration.
One binary. Clean output. Zero footguns. Educational by design.
Built with curiosity — for students, tinkerers, and crypto/math enthusiasts.
Features
- Legendre symbol
- Euler/Hermann Machin-like π approximation
- Elliptic curve point addition (over finite fields)
- Chinese Remainder Theorem solver (handles non-coprime moduli)
- Symlink-friendly (foxmath-legendre, foxmath-pi, foxmath-ecadd, foxmath-crt)
- JSON output mode
- Coming soon: continued fractions, challenge mode, more curves
Installation
pip install foxmath
Or from source:
git clone https://github.com/Abhrankan-Chakrabarti/foxmath.git
cd foxmath
pip install -e .
Usage Examples
foxmath pi --terms 200
π ≈ 3.1415926535897932384626433832795028841971693993752 (200 terms)
foxmath legendre 5 17
Legendre (5/17) = -1
# Symlinks (optional)
foxmath-ecadd --x1 1 --y1 2 --x2 3 --y2 4 --p 17
Result point: (14, 2)
# Chinese Remainder Theorem
foxmath crt --r 2 3 2 --m 3 5 7
x ≡ 23 (mod 105)
# JSON output
foxmath pi --terms 100 --json
{
"tool": "foxmath",
"command": "pi",
"terms": 100,
"approx": "3.1415926535897932384626433832795028841971693993752"
}
Why FoxMath?
Because math and cryptography are more fun when you can play with them instantly in the terminal — with the same reliability as FoxPipe and fox-vault.
Simple. Practical. Reliable.
License
MIT © Abhrankan Chakrabarti
Star if you find it useful! Issues and PRs welcome.
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 foxmath-0.2.0.tar.gz.
File metadata
- Download URL: foxmath-0.2.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1bc8134896f148de523daf9d5a5e3a0c00b7491a290fe81808b2a890928a575
|
|
| MD5 |
201c7b92aed756a6550d54a60ccd20c8
|
|
| BLAKE2b-256 |
1219d4ebcd1d566905102f64bc9a97c091148b0926bf3b97895c35cae030f306
|
File details
Details for the file foxmath-0.2.0-py3-none-any.whl.
File metadata
- Download URL: foxmath-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd4249d73bf6adbd401ee9e57d1c3eb5a79295ec4a34f7caeb8f754942ce1b0f
|
|
| MD5 |
bc67a788e2bba4fecddbca72d0dfcd19
|
|
| BLAKE2b-256 |
9cc0550590c207792b2413e151bcc4b5cfa5c251054e742354b9204c1716d2cd
|