Question: Please have explanations beside every code. Question 7: Newton's Law of Universal Gravitation (2 points) Newton's law of universal gravitation states that the force of
Please have explanations beside every code.
Question 7: Newton's Law of Universal Gravitation (2 points) Newton's law of universal gravitation states that the force of gravity exerted on two masses is equal to the product of their masses and the universal gravitational constant G , divided by the square of the distance separating them: FG = Gmim2 d2 d , returns the force of gravity exerted on implement a python function gravityclassic which, given masses ml, m2 , and the distance between them them. In [ ]: def gravityclassic(m1,m2,d): # Your code here. return Fg In [ ]: assert (gravityclassic(3,3,3) == 6.674e-11) In [ ]: assert (round(gravityclassic(597200,69300,3), 1) == 0.3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
