Lesson 2 of 15

Wave Speed

Wave Speed

A wave has both frequency and spatial extent. The wavelength lambdalambda is the distance between successive crests. The wave equation connects all three quantities:

v=flambdav = flambda

  • v — wave speed (m/s)
  • f — frequency (Hz)
  • lambdalambda — wavelength (m)

Sound in Air

Sound travels at approx343approx 343 m/s at 20 °C. This links frequency and wavelength for every audible tone:

f (Hz)lambdalambda (m)v (m/s)
4400.780343.20
10000.343343.00
2001.715343.00
1003.430343.00

Your Task

Implement waveSpeed(f, lambda) returning the wave speed in m/s.

Web Audio API loading...
Loading...
Click "Run" to execute your code.