differential equation with piecewise constant arguments