Question: Python 2.7 Write a python function that represents Eq 5. The function should calculate the vector force from one body to another. The function should

Python 2.7

Write a python function that represents Eq 5. The function should calculate the vector force from one body to another. The function should accept two masses and two position vectors as inout arguments, and it should return once force vector.

Python 2.7 Write a python function that represents Eq 5. The function

Hints: import numpy Eq 1 represents gravitational force between two bodies. Arrows ontop of variables represent a vector, the "hat" ontop of variables represents a unit vector. Eq 4 can be used to find the magnitude of any arbitrary vector. Eq 2: Arrows ontop of variables represent a vector, the "hat" ontop of variables represents a unit vector. the gravitational force exerted on body i by body j points from i to j, so the appropriate unit vector to use is Eq 2 r(hat) = r(vector)/r(magnitude)

mim 2 ij ti, yi Vi, zi- Zi) Fii = Fii rij mim 2 ij ti, yi Vi, zi- Zi) Fii = Fii rij

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!