diff_vec function

Differencing Transformation