As a jet aircraft exceeds the speed of sound, it sets up a shock wave that may be heard as a sonic boom if the sound barrier is broken close to Earth. The speed of sound varies with the air temperature. A formula for the speed of sound in km/h , based on the temperature of the gas or air in degrees Kelvin and the molecular mass of the gas in g / m * o * l , is the formulaTequals temperature, s equals speed of sound, and m is the molecular mass of the gas or air. s = 389sqrt(T/m)