Here's a question I was asked very recently: "When creating a plot, is it possible to specify the points at which the input expression should be evaluated?" The answer is "yes" for 2-D plots, and this is done with the 'sample' option. Use the command plot(f(x), x=a..b, sample=[x1, x2, ..., xn]) to have f(x) evaluated at points x1, x2, ..., xn. Note this produces a plot that includes points with x-values x1, x2, ..., xn. To produce a plot that contains only these points, you need to add the adaptive=false option as well.

Please Wait...