summaryrefslogtreecommitdiff
path: root/3845/CH2/EX2.6/Ex2_6.sce
blob: 5cf02ed185000f2b32c6aaf2e877d4334fb49e6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example 2.6
//See Figure 2.22
x_0_prime=5.25;//Initial position (km)
x_f_prime=3.75;//Final position (km)
delta_x_prime=x_f_prime-x_0_prime;//Displacement (km)
delta_t=5;//Time duration (min)
v=delta_x_prime/delta_t;//Velocity (km/min)
v=v*60;//Velocity (km/h)
printf('Average velocity = %0.1f km/h',v)
//Velocity is negative as motion is to the left
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest