summaryrefslogtreecommitdiff
path: root/3137/CH13/EX13.14/Ex13_14.sce
blob: 8293807d4f4a0272dbe3d2c94721c1c3b2b7ae19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Initilization of variables
theta=10 //degrees
v=10 //ft/s
v0=0 //ft/s
u=1/3 //coefficient of friction
g=32.2 //ft/s^2
//Calculations
//Equations of motion for box are
//Simplfying the equations by sybstitution
a=((u*cosd(theta))-sind(theta))*g //ft/s^2
//Time calculations
t=(v-v0)/a //s
//Result
clc
printf('The value of a is %fft/s^2\n The time required is %f seconds',a,t)