Week 8: October 17 - 21

The Magnetic Pendulum

The magnetic pendulum is an example of a continuous-time dynamical system. We develop a mathematical model of the equations of motion of this system, solve them numerically using Python, and plot and animate the results. This solution is then used to explore how the long-term dynamics of the system depend on friction and gravity.

Matplotlib

  • FuncAnimation
  • meshgrid

Quiz 6: Plotting

  • plot
  • figure
  • title, xlabel, ylabel
  • xlim, ylim
  • xticks, yticks
  • legend
  • subplot
  • text

Sample Quiz 6