#NEWLINE# def force_on_satellite( position , mass ) : #NEWLINE# #INDENT# 'Returns the total gravitational force acting on the body from the Earth and Moon.' #NEWLINE# earth_grav_force = gravitational_force ( position , mass , earth_position , earth_mass ) #NEWLINE# moon_grav_force = gravitational_force ( position , mass , moon_position , moon_mass ) #NEWLINE# F_x = ( earth_grav_force [ 0 ] + moon_grav_force [ 0 ] ) #NEWLINE# F_y = ( earth_grav_force [ 1 ] + moon_grav_force [ 1 ] ) #NEWLINE# return ( F_x , earth_grav_force )