For example, we can easily plot the data in the two arrays from the previous section in order to plot the position versus time for the object: #Now, evaluate the function for all of those values of x....For example, we can easily plot the data in the two arrays from the previous section in order to plot the position versus time for the object: #Now, evaluate the function for all of those values of x. #We use the numpy version of cos, since it allows us to take the cos #of all values in the array. #fvals will be an array with the 1000 corresponding cosines of the xvals squared fvals = np.cos(xvals**2)