Skip to content

Commit 766aae1

Browse files
committed
feat: Update BDF integrator to match SciPy implementation
- Replace history-based approach with SciPy's differences array (D) - Implement SciPy BDF coefficients (gamma, alpha, error_const, kappa) - Add compute_R and change_D functions for step size changes - Implement proper Newton system solver with LU decomposition approach - Update step size control with MIN_FACTOR, MAX_FACTOR, safety factors - Implement sophisticated order selection strategy based on error norms - Update error estimation using SciPy's error constants - All tests pass in <3ms, well under 1 second target - Maintains numerical accuracy while improving performance
1 parent 02bab4f commit 766aae1

File tree

1 file changed

+446
-183
lines changed

1 file changed

+446
-183
lines changed

0 commit comments

Comments
 (0)