Logic
• damping = 0 → check energy conservation
• damping > 0 → check if the velocity converges
📌 Code Description (Energy & Convergence)
Physical Assumptions: Rigid pendulum, CoM ≈ height / 2 Energy Model:
KE = ½ m (lω)²
PE = mgl(1 − cosθ)
Test Branches:
No damping → Numerical energy conservation
With damping → Dynamic convergence