You will turn the readings of a resonance tube into the speed of sound.
The idea. The first two resonances are half a wavelength apart, so . The end correction is , and it is about for a tube of inside diameter . The first resonance is at . Every length here is in metres.
Your tasks.
speed, return the speed of sound in m/s from , and .end_correction, return in m from and .first_length, return the first resonance length in m, for a fork , a speed and a tube of inside diameter .Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…