SUNY Geneseo Department of Mathematics
Monday, February 1
Math 230 02
Spring 2016
Prof. Doug Baldwin
% Compute gravitational force on an object of mass m1
% due to a mass m2 with separation d using formula
% F = G m1 m2 / d^2
%% Define gravitational constant G
G = 6.67e-11;
%% Define parameters of problem
m1 = 60; % Typical mass of an adult
m2 = 7.34767309e22; % Mass of moon
d = 1737400; % Moon’s radius
%% Calculate and display answer
F = G * m1 * m2 / d^2
nchoosek
function