Omniadisce

Computational physics 8.3: A pendulum

Lesson Beginner

Join free to take this lesson

Anyone can look around, but taking a lesson needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.

9 steps · about 25 min

By the end you can

  • Write a pendulum's angular acceleration in Python: -g / L * np.sin(theta)
  • Keep the angle in radians, turning a start in degrees with np.radians once
  • Step the angle with Euler–Cromer, exactly as for a spring
  • Measure a small swing's period and check it against 2π√(L/g)

Who it is for: Anyone who has done lesson 8.2, and physics lessons 7.3 (angular speed) and 9.5 (the pendulum).

The steps

  1. The pendulum's pull back
  2. Radians
  3. The same loop, with an angle
  4. Write the pendulum's step
  5. Against 2π√(L/g)
  6. Small-swing shortcut
  7. A 60° swing
  8. Let it go at 60°
  9. What the formula leaves out

Discussion 0 comments

Log in to join the discussion.

× Enlarged view