Home /
Expert Answers /
Physics /
suppose-you-are-writing-a-program-to-display-the-motion-of-a-planet-around-a-star-you-have-specifi-pa900
(Solved): Suppose you are writing a program to display the motion of a planet around a star. You have specifi ...
Suppose you are writing a program to display the motion of a planet around a star. You have specified |G = 6.7e-111. You specify the mass m1 and initial position |r1| of the star and the mass [m2] and initial position r21 of the planet. Before calculating the gravitional force of the star on the planet, you calculate the vector Ir= r2- r11. Check all of the VPython statements shown below that would correctly calculate the vector gravitational force that the star exerts on the planet. Remember that (mag(r) is equal to Isqrt(x2+ry2+r221, the magnitude of the vector Ir], and hat(r) is equal to ir/mag(r)], which is a unit vector in the direction of r OIF-G m1m2 hat(r)/mag(r) 21 O|F=G*mlm2 rir 31 3 OF G m1m2* hat(r)/mag(r) 21 DIF G m1m2* r/mag(r) DF=-G m1m2 r/mag(r) 31 DIF-G m1m2 r/r* 31 OIF-G m1m2/r21 OF G m1m2/r21