I want Sinc'[0] to return 0, but instead it returns Indeterminate.
I've tried
Unprotect[Sinc]
Unprotect[Derivative]
Derivative[1][Sinc][0] ^= 0
But it doesn't work.
Maybe this needs to be similar to this (from the help files for Derivative)
f'[x_] := If[PossibleZeroQ[x], N[0, Precision[x]], (x Cos[x] - Sin[x])/x^2];
Sinc
function in the first place so this itches me a little $\endgroup$sinc[x_] := Piecewise[{{Sin[x]/x, x != 0}}, 1]
. The mathematically proper derivative ofSinc
should be whatsinc'[x]
returns. But now let's take the derivative of this once more:D[sinc'[x],x]
. This will be a piecewise that's still 0 in the point $x=0$. However the actual second derivative sinc''(0) should be -1/3. This illustrates how Piecewise itself is unable to handle derivatives ... $\endgroup$Piecewise
won't give us proper derivative, it doesn't make a lot of sense to return a piecewise forSinc'[x]
. It would just delay the problem until the next derivative. OK, this is somewhat subjective, but after thinking this through I start to accept why they might have consciously made the decision not to both with Sinc'[x] in x=0. My point is that while they could have implementedDerivative[n][Sinc][x]
to return a correct Piecewise for anyn
, taking another derivative of that result would fail anyway. $\endgroup$