Analytical and numerical investigation into the longitudinal vibration of uniform nanotubes