Calculando la diferencia de elemetns en la array python

>>> import numpy as np
>>> xdiff = np.diff(x)
>>> np.all(xdiff[0] == xdiff)
True
Annoying Alligator