On Nonlocality and Locality: Differential and Discrete Formulations