D-calculus of One-dimensional Discrete Functions on a Non-uniform Grid