pendulum constrained