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.
Re:Hack the derivative
by eriktaubeneck on Saturday October 03, 2015 @11:56AM
(#10324298)
Great point, and I apologize for the confusion. The function should be C to C, with the added restriction of R to R.
Re:Hack the derivative
by eriktaubeneck on Saturday October 03, 2015 @11:58AM
(#10324308)
Thanks, I just realized that when I introduced the notation above, I just used I(f), but then when I used it below I wrote Im(f). I will clear that up.
Or is 'Im' just a fn returning the imaginary part of its argument?
EDIT: reading the code following, it's clear that Im is just that.