#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 corres...#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)