Solution (source code)

= Solution

Since $|f^{(n+1)}|\le k^{n+1}$, the error is at most $k^{n+1}/[2^n(n+1)!]\to0$ uniformly.