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.

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
Get step-by-step solutions from verified subject matter experts
