//Example 2.10 a=26;//Acceleration (m/s^2) x_0=0;//Initial position (m) v_0=0;//Initial velocity (m/s) t=5.56;//Time (s) x=x_0+v_0*t+(1/2)*a*t^2;//Final position or distance travelled (m) printf('Distance travelled by the dragster = %0.1f m',x) //Answer varies due to round off error //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest