Answer

The function definitions come directly from the mathematical definitions:

EXECUTEdistance := (V, theta, t) -> V*t*cos(theta);

EXECUTEheight := (V, theta, t) -> V*t*sin(theta) - .5*9.8*t^2;

Return to lesson.



Joseph L. Zachary
Hamlet Project
Department of Computer Science
University of Utah