I am trying to numerically find the error of a truncated series. To do so I want to first define a function that is the truncated sum, I cannot seem to do that. All I am tried is not working.
f[x_]:=Normal[Series[ArcTan[x], {x, 0, 100}]]
Does not work as f[1] evaluates $x$ inside $\arctan$. I also tried
Normal[Series[ArcTan[x], {x, 0, 100}]]
f[x_]:=%
But that did not work. When I copy and paste the result of
Normal[Series[ArcTan[x], {x, 0, 100}]]
It works fine. What am I doing wrong?
Evaluate:f[x_] := Evaluate[Normal[...]]. Note thatxgets evaluated this way as well as @Daniel's way. Ifxhas a value the definition won't work. In that case, tryBlock[{x}, f[x] = Normal[..]]– Michael E2 Nov 30 '20 at 21:58