Suppose that you are going to program a computer to carry out an iterative calculation of motion involving electric forces. Assume that as usual we use the final velocity in each time interval as the approximate average velocity during that interval. Which of the following calculations should be done before starting the repetitive calculation loop? Which of the calculations listed above should go inside the repetitive loop, and in what order?

(a) Define constants such as 14πε0

(b) Update the (vector) position of each object.

(c) Calculate the (vector) forces acting on the objects.

(d) Specify the initial (vector) momentum of each object.

(e) Specify an appropriate value for the time step.

(f) Specify the mass of each object.

(g) Update the (vector) momentum of each object.

(h) Specify the initial (vector) position of each object.

Short Answer

Expert verified

Inside of the loop b,c,g

Outside of the loop is a,e,f,h,d.

Step by step solution

01

Momentum of an object

The formula for the momentum of an object is

P=mv

Where, Pis the momentum of an object, mthe mass of an object, vis the speed of the object.

02

Inside the loop

For a computer program to carry out an iterative calculation of motion involving electric forces. The following order for the inside the loop for calculation of motion.

  1. Update the position of each object.
  2. Calculate the forces acting on the objects.
  3. Update the momentum of each object.
03

Outside the loop

The following order for outside the loop for calculation of motion.

Define constants

  1. Specify an appropriate value for the time step.
  2. Specify the mass of each object.
  3. Specify the initial position of each object.
  4. Specify the initial momentum of each object

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

See all solutions

Recommended explanations on Physics Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free