Finite-difference equations and simulations