function result = distance(t)
% This function calculates the distance
% a falling object travels due to gravity 
g = 9.8;  % meters per second squared (accleration due to gravity)
result = 1/2*g*t.^2;
return;
end