Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Asha draws a wave of wavelength m and frequency Hz. She writes k = 2 * np.pi / lam but then w = f, and her wave is A * np.sin(k * x - w * t). What speed does her wave really have? What speed should it have?
A travelling wave is with and . Its speed is . A crest is where , so it moves at the speed . x[np.argmax(y)] finds the first crest in code.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. Her numbers. rad/m and rad/s, because she left out the .
Step 2. Her speed. m/s.
Step 3. The right speed. m/s.
Step 4. The fix. Write w = 2 * np.pi * f. Then rad/s and m/s.
Answer: her wave has a speed of m/s; it should be m/s.
Log in to join the discussion.
Loading…