The spherical pendulum
L = 1.0 # Length of the pendulum arm (meters)
g = 9.81 # Gravitational acceleration (m/s^2)
m = 1.0 # Mass (kg)
theta_0 = 2.6 # In radians
p_theta_0 = 0.0 # Theta momentum
phi_0 = 0.0 # In radians
p_phi_0 = 0.5 # Axial momentum
Nt = 401 # Number of time steps
dt = 0.025 # Time resolution

Last updated