diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3137/CH16/EX16.8 | |
download | Scilab-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-x | 3137/CH16/EX16.8/Ex16_8.sce | 24 |
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)
|