A point mass on a rigid, massless rod hangs from a horizontally moving support. Gravity and a linear damping torque act on the relative swing.
xₚ = A sin(Ωt), Ω = 2πf
θ̈ = −(g/L) sin θ − γθ̇ + (AΩ²/L) sin(Ωt) cos θ
f₀ = √(g/L)/(2π)
Θ = (AΩ²/L) / √[(g/L − Ω²)² + (γΩ)²]
The second equation is the small-angle steady-state amplitude, not a nonlinear prediction. The scaled simulation uses textbook gravity g = 9.81 m/s², and illustrative model dimensions and damping. Relative mechanical energy is E = ½mL²θ̇² + mgL(1 − cos θ); the drive can add or remove it, while damping removes it.
Fixed-step classical fourth-order Runge–Kutta integration (illustrative step 1/240 s). Period reference: exact finite-angle elliptic integral evaluated by the arithmetic–geometric mean. The gain check integrates a linear model; the energy check isolates an undamped, undriven pendulum. No friction hysteresis, flexible rod, air-flow or motor feedback is modelled. This is a generic teaching apparatus, not affiliated with any manufacturer or institution.