Plots the function f (x) over the interval [a, b]. Optional x-values are evaluated by the function and plotted as points.