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:
- Inspect current vector field/residual implementations.
- Add SymPy-backed physical Jacobian derivation.
- Expose
physical_jacobian,physical_eigenvalues, eigenvalue ordering/classification, Hopf crossing detection. - Add finite-difference and utility tests.
- 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.pysrc/bergner_spichtinger_2026/__init__.pytests/test_stability.pypyproject.tomluv.lock
Implemented:
Show remaining 12 lines
physical_jacobianphysical_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.pyuv run pytest
Result: 58 passed.
User
Please commit the changes.
Assistant
Committed changes.
Commit:
25cef94 Add physical stability analysis utilities
Working tree is clean.