When I ask SeriesCoefficient[]
to give me a general term, it outputs a response with head "Piecewise" that contains the general term in the first line and (every time I tried it) "0 True" in the second line. SeriesCoefficient[][[2]]
brings back the '0' but not 'True'. There is no [[3]].
My hunch is that this device is used for many functions (answering, say, "Is there valid output at input '0'?) but tbh I have no idea. Thanks, TB
Example (from documentation):
SeriesCoefficient[Exp[-x], {x, 0, n}]
Piecewise
covers all possibilities. Look atf[x_] = Exp[-x]; Sum[SeriesCoefficient[f[x], {x, 0, n}] x^n, {n, -Infinity, Infinity}] == f[x]
$\endgroup$