Skip to contents

Calculates the wavelength of a sound wave given the frequency and speed of sound in that medium.

Usage

wavelength(
  frequency,
  speed = soundSpeed(medium = "air"),
  output.unit = "m",
  unit
)

Arguments

frequency

Frequency of the sound in Hertz

speed

Speed of sound (defaults to the speed of sound in air)

output.unit

Unit to return the wavelength in, either "m" or "cm"

unit

Deprecated, use output.unit instead.

Value

Wavelength of the sound in the unit specified

Examples

wl <- wavelength(1000)
wl <- wavelength(1000, speed=soundSpeed(medium="steel"))
wl <- wavelength(1000, output.unit="cm")