d＝y[2::2]-(y[1:-2:2]+y[3::2])/2