|a[i]-a[i-1]|<gr