summaryrefslogtreecommitdiff
path: root/3137/CH16/EX16.8
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3137/CH16/EX16.8
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '3137/CH16/EX16.8')
-rwxr-xr-x3137/CH16/EX16.8/Ex16_8.sce24
1 files changed, 24 insertions, 0 deletions
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)