I was also lost at that part, although for a different reason. The function f was assumed to be from R to R, so it does not make formal sense to plug in f(x+ih).
I guess the author has the unstated assumption that f is the restriction to R of a function on C.
I guess the author has the unstated assumption that f is the restriction to R of a function on C.