Longitudinal wave and seismic P-waves (created by earthquakes and explosions). In longitudinal waves, the displacement of the medium is parallel to the propagation of the wave, and waves can be either straight or round. A wave along the length of a stretched Slinky toy, where the distance between coils increases and decreases, is a good visualization. In the case of longitudinal harmonic sound waves, the frequency and wavelength can be described by the formula where: The quantity "x"/"c" is the time that the wave takes to travel the distance "x". The ordinary frequency ("f") of the wave is given by The wavelength
Shock wave near the crest of each wave than near the troughs between waves, because the wave height is not infinitesimal compared to the depth of the water. The crests overtake the troughs until the leading edge of the wave forms a vertical face and spills over to form a turbulent shock (a breaker) that dissipates the wave's energy as sound and heat. Similar phenomena affect strong sound waves in gas or plasma, due to the dependence of the sound speed on temperature and pressure. Strong waves heat the medium near each pressure front, due to adiabatic compression of the air itself,