Upwind method for first order finite difference approximation of 1D linear advection

This script makes a grid with a set number of divisions and a length.
It calculates the value of a cosine function at a point corresponding
to the middle of each grid point.