The values of the function at the sample points are now stored in an array.