summaryrefslogtreecommitdiff
path: root/3845/CH2/EX2.10/Ex2_10.sce
blob: 6dba84d1dd1194eff797022e499f2410bc7eaac5 (plain)
1
2
3
4
5
6
7
8
9
10
//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