Interaction for solitary waves in coasting charged particle beams