Get your own website Result Size: 625 x 565
x
 
import numpy as np
arr = np.array([10, 15, 25, 5])
newarr = np.diff(arr, n=2)
print(newarr)
[  5 -30]