Skip to main content

use_acoustics/
speed.rs

1/// Approximate speed of sound in dry air at 20 C, in meters per second.
2pub const SPEED_OF_SOUND_AIR_20C_MPS: f64 = 343.0;
3
4/// Computes the approximate speed of sound in dry air for a given temperature in Celsius.
5#[must_use]
6pub fn sound_speed_air_mps(temperature_celsius: f64) -> f64 {
7    331.3 + (0.606 * temperature_celsius)
8}