moving numeric calculus