You will draw a wave of wavelength 3.0 m and frequency 4.0 Hz at two times, find its first crest each time, and work out its speed.
The idea. The crest of moves at the speed . You find where the crest is with np.argmax, and then check the speed from how far it moved.
Your tasks.
wave(x, t): the displacement in m, using the constants given.y0 and y1 to the rope at the times 0 and 0.04 s.speed to the distance the first crest moved, divided by 0.04 s.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…