Mon Jul 15 21:26:04 2024
midpoint_adaptive_test():
python version: 3.10.12
numpy version: 1.26.4
Test midpoint_adaptive().
lotka_test():
midpoint_adaptive() solves lotka_ode().
A pair of ordinary differential equations for a population
of predators and prey are solved using midpoint().
The exact solution shows periodic behavior, with a fixed
period and amplitude.
Steady state at r = 5000, f = 2000.
mad_compute(): count = 1738
Graphics saved as "lotka_phase.png"
Graphics saved as "lotka_solution.png"
Graphics saved as "lotka_timestep.png"
mad_stats():
Number of timesteps 1738
Rejected timesteps 0
First time interval is [ 0.0 , 0.025 ]
Final time interval is [ 19.99748885028283 , 20.010126055068607 ]
Minimum timestep is 0.0062788423742947685
Maximum timestep is 0.04958458111346076
midpoint_adaptive_test():
Normal end of execution.
Mon Jul 15 21:26:05 2024