void draw(){ float d = Displacement(8, 2, -2); rect(d, height/2, 50, 50); }
Calculates the displacement of a particle given its initial speed, acceleration, and time interval
float Displacement(float vi, float t, float a)
##Parameters: vi = initial speed of particle t = time interval over which particle moves a = acceleration of particle
##Returns: float d
##Other notes: None