I'm running a numerical integral over a function which I can only know on specific points as the problem is defined on a lattice.
I've been using a trapezoidal method which has for known error:
$$\Delta = \frac{1}{12} \text{mesh}^3 \;*\text{length} * \text{max}(f'')$$
mesh will be equal to 1 in my case but I'm not sure how to evaluate the max of the second derivative, which I don't know naively. Is the bound still correct if I use a discrete second derivative instead? There is no additional information I can access.