Nearly Optimal Approximation of Matrix Functions by the Lanczos Method Anne Greenbaum