Omniadisce

Computational physics 7.1: x and y together

Lesson Beginner

Join free to take this lesson

Anyone can look around, but taking a lesson needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.

11 steps ยท about 25 min

By the end you can

  • Keep a position (x, y) and a velocity (vx, vy), with x across and y up
  • Step both directions with Eulerโ€“Cromer, with a_x = 0 and a_y = โˆ’9.81 m/sยฒ
  • Split a launch into vx = u cos ฮธ and vy = u sin ฮธ, with np.radians
  • Run until the ball lands, plot its path, and check the range against R = u_x ร— T

Who it is for: Anyone who has done unit 6 of this course, and physics lessons 3.2 (components) and 3.5 (projectiles launched at an angle).

The steps

  1. Two directions, one loop
  2. Which velocity changes?
  3. Step the up-velocity
  4. Launching at an angle
  5. The across part
  6. Until it lands
  7. How far?
  8. Check it against physics
  9. The exact range
  10. Reading the path
  11. Two motions in one program

Discussion 0 comments

Log in to join the discussion.

× Enlarged view