From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3137/CH16/EX16.8/Ex16_8.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 3137/CH16/EX16.8/Ex16_8.sce (limited to '3137/CH16/EX16.8') diff --git a/3137/CH16/EX16.8/Ex16_8.sce b/3137/CH16/EX16.8/Ex16_8.sce new file mode 100755 index 000000000..b7c37bd52 --- /dev/null +++ b/3137/CH16/EX16.8/Ex16_8.sce @@ -0,0 +1,24 @@ +//Initilization of variables +theta=30 //degrees +W=80 //lb +Ww=100 //lb +I=4 //slug-ft^2 +r=0.5 //ft +v= 20 //ft/s +vo=0 //ft/s +g=32.2 //ft/s^2 +//Calculations +//Using Equations of motion +//Solving the system of linear equatinons by matrix method +A=[-1,0,-W/g;1,-1,-Ww/g;0,r,-2*I] +B=[-W;Ww*sind(theta);0] +C=inv(A)*B +//Storing values in variables +T=C(1) //lb +F=C(2) //lb +a=C(3) //ft/s^2 +//Time calculations +t=(v-vo)/a //s +//Result +clc +printf('The time required is %f s',t) -- cgit