Dispersion of nonlinear waves in a rod