You will write three functions. Speeds are fractions of .
The idea. Speeds along one line add as in units of . For a source moving away at , the received wavelength is , and from the ratio the speed is .
Your tasks.
add, return the speed relative to the ground of an object that moves at u_rel in a frame that moves at v.received, return the received wavelength from a source moving away at beta.speed_from_ratio, return the speed of a receding source from the ratio r.Run your code once to unlock the worked solution.
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…