You will write the equation of simple harmonic motion as functions, and use them to follow the foot of a point that goes round a circle.
The idea. A point moves round a circle of radius with the period . Its foot on a diameter is at , where .
Your tasks.
angular_frequency, return for the period T.position, return at the time t.track, return a list of n positions, taken at equal steps through one period, starting at with .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…