play phryzby with physics

A Bat's Call into Water

solved TravellingWave

Q. A bat emits ultrasonic sound of frequency 1000 kHzνc=1000kHz in air. Speed of sound in water is 1486 m/svt=1486m/s. If the sound meets a water surfaceνt=νc, what is the wavelength of the transmitted sound, in metres?

λ = ?v = 1486 m/s
Inputs
νc
1000 kHz
vt
1486.0 m/s
Outputs
wavelengthλt?

How it's solved

Solved with TravellingWave

Given

  • νc=1000kHz
  • vt=1486m/s
  • νt=νc from “meets a water surface”

Find λt.

Working
  1. νc=1000kHz=1×106Hz
  2. meets a water surfaceνt=νc
  3. νt=1×106
  4. νt=1×106Hz
  5. speed of a wave(transmitted)vt=νt⋅λt
  6. 1486=1×106⋅λt
  7. λt=0.001486m
  8. λt≈0.00149mto 3 significant figures
Conclusion

Crossing into water the sound keeps the frequency it was made with but runs faster, so each wave stretches longer in the same proportion.

The web of concepts

given read from the words equation asked

The Ruby that solves it

The question and its solution are small Ruby files. The engine runs them.

question.rb
1require_relative "../physics"23question :a_bat_s_call_into_water do4  kind :numerical5  describes "A bat emits ultrasonic sound of frequency %{frequency} in air. Speed of sound in water is %{speed}. If " \6            "the sound meets a water surface, %{wavelength}, in metres?"7  given frequency: "1000 kHz"8  given speed: "1486 m/s"9  asks wavelength: "what is the wavelength of the transmitted sound"10end
solution.rb
1require_relative "../questions/a_bat_s_call_into_water"2require_relative "../science/waves/travelling_wave"34solve :a_bat_s_call_into_water, using: TravellingWave do5  objects :call, :transmitted67  take frequency: call.frequency8  take speed: transmitted.wave_speed910  deduce_from "meets a water surface", transmitted.frequency => call.frequency1112  wavelength = transmitted.wavelength13  answer wavelength:, in: "m", figures: 31415  conclusion "Crossing into water the sound keeps the frequency it was made with but runs faster, so each wave " \16             "stretches longer in the same proportion."17end
playground.rb
1require_relative "../solutions/a_bat_s_call_into_water"23play_with :a_bat_s_call_into_water do4  title "A Bat's Call into Water"5end
The laws it drew on
quantitywrittenunitswithinfrom
piπ—0 … ∞TravellingWave
amplitudeam—TravellingWave
wave numberkm⁻¹—TravellingWave
angular frequencyωrad/s—TravellingWave
wavelengthλm0 … ∞TravellingWave
periodTs—TravellingWave
frequencyνHz0 … ∞TravellingWave
wave speedvm/s—TravellingWave
separationΔxm—TravellingWave
phase differenceΔφ——TravellingWave
wave number of groundkgm⁻¹—
wavelength of groundλgm0 … ∞
wave number of callkcm⁻¹—
wavelength of callλcm0 … ∞
wave number of transmittedktm⁻¹—
wavelength of transmittedλtm0 … ∞
angular frequency of groundωgrad/s—
period of groundTgs—
angular frequency of callωcrad/s—
period of callTcs—
angular frequency of transmittedωtrad/s—
period of transmittedTts—
frequency of groundνgHz0 … ∞
frequency of callνcHz0 … ∞
frequency of transmittedνtHz0 … ∞
wave speed of groundvgm/s—
wave speed of callvcm/s—
wave speed of transmittedvtm/s—
phase difference of groundΔφg——
separation of groundΔxgm—
phase difference of callΔφc——
separation of callΔxcm—
phase difference of transmittedΔφt——
separation of transmittedΔxtm—
amplitude of callacm—
amplitude of transmittedatm—
kw=2⋅πλw
wave number and wavelength
ωw=2⋅πTw
angular frequency and period
νw=1Tw
frequency and period
vw=νw⋅λw
speed of a wave
Δφw=kw⋅Δxw
phase across a separation
kg=2⋅πλg
wave number and wavelength(ground)
kc=2⋅πλc
wave number and wavelength(call)
kt=2⋅πλt
wave number and wavelength(transmitted)
ωg=2⋅πTg
angular frequency and period(ground)
ωc=2⋅πTc
angular frequency and period(call)
ωt=2⋅πTt
angular frequency and period(transmitted)
νg=1Tg
frequency and period(ground)
νc=1Tc
frequency and period(call)
νt=1Tt
frequency and period(transmitted)
vg=νg⋅λg
speed of a wave(ground)
vc=νc⋅λc
speed of a wave(call)
vt=νt⋅λt
speed of a wave(transmitted)
Δφg=kg⋅Δxg
phase across a separation(ground)
Δφc=kc⋅Δxc
phase across a separation(call)
Δφt=kt⋅Δxt
phase across a separation(transmitted)
νt=νc
meets a water surface