Week 6: March 6 - 10

The “Butterfly Effect”

The “butterfly effect” describes systems where a small change in the initial conditions can result in large differences in outcome at a later time. We examine this idea using the “Mayfly model” as an example, exploring circumstances in which nearby trajectories either converge or diverge.

Linear Least Squares

The problem of finding a straight line which best fits a set of points arises naturally when we study the “butterfly effect”. We explore what a “good fit” means, and how to find one.

Week 6 Notebook

NumPy

  • Multi-dimensional arrays
  • Array indexing and slicing
  • mean

Matplotlib

  • loglog
  • semilogx
  • semilogy
  • subplot
  • xticks, yticks

Quiz 5: Loops

  • while loops
  • for loops
  • range
  • break
  • continue

Sample Quiz 5