powered by
This function finds the average speed of sound in water or air (c) in m/s given information on temperature, salinity, and depth.
soundSpeed(t, med = "air", s = NULL, z = NULL)
The speed of sound in m/s
The temperature in °C
The medium sound is traveling through
The salinity in parts per thousand (ppt)
The depth in m
#Speed of sound in 30°C water with a salinity of 2000 ppt and a depth of # 2010 m soundSpeed(30, "water", 2000, 2010)
Run the code above in your browser using DataLab