wof | R Documentation |
This function finds the length of a sound wave, known as the wavelength (m), or frequency of a sound (Hz), given the identity of the input. The speed of sound is the default in air (340 m/s). You may calculate your own value for c relative to the conditions present in your ecosystem of study via soundSpeed().
wof(b, c = 340)
b |
The known wavelength (m) or frequency (Hz). |
c |
The speed of sound in m/s. As a general rule of thumb, however, c is equal to 1500 m/s in saltwater and 350 m/s in air. Note that the distinction between freshwater and saltwater is important. Sound speed is faster in saltwater than freshwater. |
The unknown wavelength (m) or frequency (Hz) given the identity of input a.
# Given a frequency of 80 Hz in air, what is the wavelength?
wof(80000)
# Given a wavelength of 0.004 m in salt water, what is the frequency?
wof(0.004, c=1500)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.