Skip to content

walter-weinmann/py-mathx-lab

py-mathx-lab social preview

CI Docs

py-mathx-lab

A curated gallery of small, reproducible math experiments implemented in Python.

Each experiment is runnable with one command and produces an output folder containing a short report and figures.

Website (documentation)

Documentation (GitHub Pages):

The docs include: Experiments, Getting started, Development, References.
As the project grows, experiment write-ups can scale under docs/experiments/.

Quickstart

Prerequisites

  • Python 3.14
  • uv
  • GNU make

Setup

make uv-check
make python-check
make venv
make install-dev

Run the development chain (format + lint + typing + tests + documentation)

make final

Build documentation only (Sphinx)

make install-docs
make docs

Docs output is written to:

  • docs/_build/

Run an experiment

Example (E001):

make run EXP=e001 ARGS="--seed 1"

Outputs will appear in out/e001/ (report, figures, parameters).

Logs are written to out/e001/logs/ for each run. Use V=1 to enable DEBUG logs from mathxlab.* only:

make run EXP=e001 ARGS="--seed 1" V=1

Outputs will appear in out/e001/ (report, figures, parameters).

Experiments

See the experiment overview in the docs:

  • docs/experiments.md

As the number of experiments grows, individual pages live under:

  • docs/experiments/e###.md

Naming convention

  • experiments/e###_<short_name>.py (IDs are stable, do not reuse)

Reproducibility expectations

Each experiment should be:

  • deterministic given --seed (if randomness is involved)
  • self-contained: all artifacts go into the --out directory
  • runnable as a module (recommended), e.g.:
uv run python -m mathxlab.experiments.e001_taylor_error_landscapes --out out/e001 --seed 1

Contributing

This is a solo-maintainer repository with a strict PR workflow.

  • Read: CONTRIBUTING.md
  • Security: SECURITY.md

Highlights:

  • No direct pushes to main
  • Small, reviewable PRs
  • CI must pass before merge

License

  • Code: MIT License (see LICENSE)
  • Documentation & media (Markdown, images, figures): CC BY 4.0 (see LICENSE-CC-BY-4.0)

Citation

If you reference this work, please cite:

  • the repository link
  • the experiment ID (e.g., E001)
  • ideally a commit hash or tag for reproducibility

About

A gallery of numerical experiments: conjectures, counterexamples, and code.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages