Interactive gravitational N-body simulation using Leapfrog DKD time integration scheme. It will loose symmetry eventually due to accumulation of numerical error, but preserves symmetry better than RK45.
Alex Pedcenko (2023). N-body simulation with leapfrog scheme (https://www.mathworks.com/matlabcentral/fileexchange/75206-n-body-simulation-with-leapfrog-scheme), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!