Equation of motion
θ̈ + γθ̇ + (g/L) sin θ = 0
Here θ is the angle from vertical, L is string length, g is gravitational field strength, and γ is the linear angular damping coefficient. The solver advances this equation with a fixed-step fourth-order Runge–Kutta method.
Energy bookkeeping
E = ½mL²ω² + mgL(1 − cos θ)
dE/dt = −γmL²ω²
The model integrates the energy removed by damping alongside the motion. In the no-drag limit, mechanical energy is conserved.
Two period references
T₀ = 2π√(L/g)
This is the textbook small-angle result. For a larger initial angle θ₀, the ideal undamped period is:
T = 4√(L/g) K(sin(θ₀/2))
K is the complete elliptic integral of the first kind, evaluated here with the arithmetic–geometric mean. The approximation becomes less accurate as the release angle grows.
Simplifications: a rigid, massless string; a point bob; a fixed pivot; uniform gravity; no string stretch; and linear angular damping. The drawing is scaled for the screen, not to a physical ruler. All control values are illustrative inputs, live values are simulated, and equations are textbook references.
An independent educational simulation; not affiliated with a museum, university, or instrument manufacturer.