News for hackers. Stuff that matters.
Re:Hack the derivative by edoloughlin on Saturday October 03, 2015 @05:21AM (#10323218)
Lost me a bit at

  Im(f(x+ih))​​/h
near the end (that's a fancy I that android FF won't paste). Can anyone explain where 'm' came from?

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.

Re:Hack the derivative by mbroshi on Saturday October 03, 2015 @08:04AM (#10323558)
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.
Re:Hack the derivative by czzarr on Saturday October 03, 2015 @05:26AM (#10323233)
Im is for imaginary part of its argument as you say