desr – Differential Equation Symmetry Reduction

Introduction

desr is a package used for Differential Equation Symmetry Reduction and is particularly useful for reducing the number of parameters in dynamical systems.

desr implements and extends algorithms originally outlined by Evelyne Hubert and George Labahn [HL13]. It further implements reduction on systems with equality constraints and initial conditions.

The preprint [THM+25] describes an earlier form of this work. It pre-dates the corrected symbol ordering and the Hermite multiplier normal form that arrived in version 2.0, so the reductions it reports are not the ones this version produces; a revision is in preparation.

The Master’s dissertation Differential Algebra and Applications that inspired this project places the algorithms into the theoretical framework of differential algebraic geometry. The dissertation further shows how to extend them to parameter reduction of arbitrary systems of partial differential equations, though this is not yet implemented in this software.

Installing

From PyPI:

pip install desr

The figures also need matplotlib, which desr does not install:

pip install matplotlib

From a clone of the repository:

pip install .

Running the tests

The test suite is in tests/ and runs with python -m pytest tests/. It needs matplotlib, which desr itself does not.

Doctests are included in most files. To run them, from top level run sphinx-build -b doctest docs/source/ build/, or run the individual submodule of desr as a script, e.g. python -m doctest -v module.py

Building the documentation

  • The documentation is hosted online at readthedocs.

  • Sphinx - Used to generate the docs.

Contributing

Pull requests and issues on the GitHub repo are most certainly welcome.

Authors

  • Richard Tanburn - Initial work

  • Silviana Amethyst - Additional implementation, bugfixing, maintenance

License

This project is licensed under the Apache 2.0 License.

Acknowledgments

  • Dr. Heather Harrington and Dr. Emilie Dufresne for their supervision of the dissertation.

  • Thomas Close, whose diophantine module earlier versions of desr used for Hermite normal form calculations.

Contents

Indices and tables