Learn R Programming

sonar (version 1.0.2)

SpeedOfSoundAir: speed of sound in humid air at sea level air density and known atmospheric pressure

Description

Returns the speed of sound in humid air at sea level air density and known atmospheric pressure

Usage

SpeedOfSoundAir(temperatureC, Hr, pressurekPa)

Arguments

temperatureC
numeric, temperature in degrees Celsius in the range -30 C to 43 C
Hr
numeric, relative humidity, accurate to within 0.1% for temperatures
pressurekPa
numeric, atmospheric pressure in kPa

Value

the speed of sound (m/s)

References

Kleeman L. & Kuc R., 2008 Springer Handbook of Robotics, Bruno Siciliano, Oussama Khatib (Eds.) Springer-Verlag Berlin Heidelberg, pp.496 eq (21.8).

Examples

Run this code
#Speed of sound (Humid air, at sea level air density)
#temperature 20 C, 90\% relative humidity, 101 kPa atmosphere pressure
SpeedOfSoundAir(20, 0.9, 101)

Run the code above in your browser using DataLab