Sorry, guys, but you're misremembering. The speed of sound is *not* strongly related to the density or pressure of the gas. It is strongly dependent on the temperature.
For an ideal gas, the speed of sound c = sqrt(g*k*T/m)
Where:
g (actually gamma) is the adiabatic index - the ratio of specific heats of the gas.
k is the Boltzmann constant
T is the absolute temperature
m is the mass of a single molecule of the gas
Now, most gases are not quite ideal, but air is quite nearly so, and the effects of it being non-ideal are small. The speed of sound changes with altitude because the temperature changes with altitude.
For example, the aproximate speed of sound in salt water (for a standard salinity, depth, and temperature), is about 1560 m/s (or just shy of 3,500 mph).
That's right. Actually, the basic speed of sound formula does include density; but when you substitute on it the ideal gas ecuation it gives the result you posted.
For example, the aproximate speed of sound in salt water (for a standard salinity, depth, and temperature), is about 1560 m/s (or just shy of 3,500 mph).
*I'm an Avionics Specialist.
*I was [an] avionics communications specialist.
I worked on F-4s back in the 80's

(Dungeons & Dragons)
Rulebook featuring "high magic" options, including a host of new spells.