B&S2026 Figure 2 Jacobian infrastructure

User

Please start work on TASK-020.

Assistant

Started TASK-020: set status to In Progress and assigned it to @pi.

I’ll follow the existing implementation plan. Per repo workflow, please confirm before I begin coding:

  1. Inspect current vector field/residual implementations.
  2. Add SymPy-backed physical Jacobian derivation.
  3. Expose physical_jacobian, physical_eigenvalues, eigenvalue ordering/classification, Hopf crossing detection.
  4. Add finite-difference and utility tests.
  5. Run existing Figure 1 tests/workflows for compatibility.
Show remaining 1 line

Reply “approved” and I’ll proceed.

User

Go ahead.

Assistant

TASK-020 is complete and marked Done.

Changed files:

  • src/bergner_spichtinger_2026/stability.py
  • src/bergner_spichtinger_2026/__init__.py
  • tests/test_stability.py
  • pyproject.toml
  • uv.lock

Implemented:

Show remaining 12 lines
  • physical_jacobian
  • physical_eigenvalues
  • SymPy derivation/provenance helper
  • canonical eigenvalue ordering
  • complex-pair vs three-real classification with tolerances
  • Hopf crossing detection over log_w

Validation:

  • uv run pytest tests/test_stability.py tests/test_residuals_continuation.py tests/test_figure1_backend_comparison.py
  • uv run pytest

Result: 58 passed.

User

Please commit the changes.

Assistant

Committed changes.

Commit:

  • 25cef94 Add physical stability analysis utilities

Working tree is clean.