Copyright © T. H. Merrett

COMP 612               Principles of Database Programming                Week 9

Assignment 8

Create a computation, comp UniAccel(d0,d,v0,v,a,t), to provide all possible
solutions for motion under uniform acceleration, using the relationships

	d = d0 + v0*t + a*t*t/2
and
	v = v0 + a*t

with all parameters of type real.

Test it in all possible ways, including UniAccel[5,75,2,12,1,10].


ALL RELIX ASSIGNMENTS ARE TO BE SUBMITTED IN THE FORM OF AN UNEDITED TRACE
OF YOUR DEBUGGED FINAL RUN.

Shared marks for shared work: assignments should be your own work; marks
for joint assignments will be divided by the number of collaborators.
But please feel free to work in groups to learn or for extra work that
is not for marks. HINT: treat your own work for marks as top secret; treat
others' work, if you come across it, as personal and private to them.

Syntax for computation declarations

comp  ([param,..]) is
[local  ;]*
[state  ;]*
{ [;]*}
[alt { [;]*} ]*
;

Syntactic sugar for T-selector

"[""]"