Equation of motion
θ̈ + βθ̇ + (g/L) sin θ = 0
The restoring torque comes from gravity. The damping term is proportional to angular velocity. The equation is integrated with a fixed-step fourth-order Runge–Kutta method.
Period references
T₀ = 2π√(L/g)
This is the textbook small-angle period. For a finite release angle, the exact undamped reference is:
T = 4√(L/g) K(sin(θ₀/2))
K is the complete elliptic integral of the first kind, evaluated here using the arithmetic–geometric mean. The measured period comes from successive matching-direction centre crossings in the simulation.
Energy accounting
E = ½mL²ω² + mgL(1 − cos θ)
dE/dt = −mL²βω²
The energy check compares mechanical energy plus accumulated dissipated work with the initial mechanical energy. A small residual indicates consistent numerical bookkeeping.
Model boundaries
The bob is treated as a point mass on a rigid, massless rod. Motion is planar, gravity is constant, and resistance is represented by linear angular damping. The drawing is visually scaled rather than a physical measurement. Mass changes the energy values but not the ideal period.
This is an independent educational simulation and is not affiliated with a museum, university or equipment manufacturer.