Elastic collision in 1-D and special cases, inelastic collision in one dimension and its special cases