summaryrefslogtreecommitdiff
path: root/3845/CH16/EX16.7/Ex16_7.sce
blob: e833c63ca90c93d96b74b6ad41b8f1cffa705898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 16.7
m=0.200;//Mass (kg)
mu_k=0.0800;//Coefficient of friction
g=9.80;//Acceleration due to gravity (m/s^2)
f=mu_k*m*g;//Force (N)
printf('a.Frictional force between the surfaces = %0.3f N',f)
k=50;//Force constant of spring (N/m)
X=0.100;//Distance of object from equilibrium when released (m)
d=k/(2*mu_k*m*g)*[X^2-(mu_k*m*g/k)^2];//Distance (m)
printf('\nb.Distance travelled by the object =%0.2f m',d)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest