The element-free Galerkin method of numerically solving a regularized long-wave equation