Week 7: March 13 - 17

Solving Algebraic Equations

Finding the roots of a function - the values where it equates to zero - arises often when solving problems in science and mathematics. Since it is not always possible to find such roots exactly, methods for finding numerical approximations are needed. This week we start to examine such methods, explore their advantages and limitations, and examine the speed with which different methods converge to a solution.

Images and the RGB Color Model

NumPy arrays can be used to represent both color and grayscale images. We learn how colors are represented in terms of red, green, and blue components, and some of the functions Matplotlib provides for saving, loading and displaying images.

Week 7 Notebook

Jupyter Notebook

  • Using “Out[n]”

Matplotlib

  • imread
  • imsave
  • imshow

Quiz 6: Plotting

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

Sample Quiz 6