desr 2.0.0
Scaling symmetry reduction of ODE systems, after Hubert & Labahn (2013).
Not source-compatible with 1.x. The Hermite normal form now follows
Hubert & Labahn, so reductions differ: the front of the variable order is
the end that gets normalised.
Interface:
- `symbols` is the collective; `variables` is the independent variable
and the dependents; `parameters` is the rest. `dependent_variables`
is `dependents`.
- `constant_variables`, `num_constants` and `non_constant_variables` are
removed without aliases. A variable whose equation says zero is a
conserved dependent; a variable with no equation is a parameter.
- `invariant_monomials()` / `invariant_names()` and
`auxiliary_monomials()` / `auxiliary_names()` replace `invariants()`
and `auxiliaries()`.
- `column_of()` gives the column index of an invariant.
- `extend_from_invariants()` takes monomials.
- initial conditions may be numbers, zero included, and a system carries
`parameter_values`.
- `from_tex` reads initial conditions, and `to_tex`/`from_tex` round-trip
equations, initial conditions, constraints and values.
- `diff_subs` is `subs`, taking sympy's argument shapes.
- the naming scheme is a dict over `parameters`, `independent`,
`dependents` and `auxiliaries`.
- `power_matrix` is `exponent_matrix`.
- python_requires >= 3.10, which is python-flint's floor.
Tested on CPython 3.10 through 3.14, with and without numpy and scipy:
484 unit tests, 1155 documentation doctests, the module doctests, an HTML
documentation build with warnings as errors, and the example scripts.
See https://github.com/ofloveandhate/desr/pull/30 for the pull requests
this is made of.