Accompanying source code for the paper
Variational integration of learned dynamical systems
Sina Ober-Blöbaum, Christian Offen
Journal of Computational and Applied Mathematics, Volume 421, 2023, page 114780
DOI: 10.1016/j.cam.2022.114780
Refer to the Jupyter notebooks to see the numerical examples on the mathematical pendulum and the Henon-Heiles system.
Computations and verifications of (inverse) variational backward error analysis can be found in the scripts in the folder Mathematica.