You will add two waves point by point, and check the result against the formula for the amplitude of the sum.
The idea. A wave is . Two waves of the same and add to a wave of amplitude . For equal amplitudes, .
Your tasks.
wave, return the displacement .equal_amplitude, return , as a size (use abs).general_amplitude, return the amplitude for two different amplitudes.largest_sum, return the largest value of the sum of the two waves at , over one period, using wave.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…