Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Solutions to the exercises of Chapter 2

School of Engineering and Digital Sciences, Nazarbayev University

Chapter: 2. Time integration: Euler, Velocity Verlet, and symplectic shadow Hamiltonians

Each solution below reproduces the chapter state and verifies the exercise targets with explicit assert checks.

Velocity Verlet energy-fluctuation scaling slope = 2.05 (expected 2.00)
Time-reversal position error after 50 steps = 8.88e-16
<Figure size 1120x430 with 2 Axes>

Worked solutions to Exercises 1–3

Ch 2 Exercises — std(E) = 1.76e-03 vs. Shadow Hamiltonian std(E_tilde) = 2.11e-16