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.14/Ex16_14.sce | |
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.14/Ex16_14.sce')
-rwxr-xr-x | 3137/CH16/EX16.14/Ex16_14.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3137/CH16/EX16.14/Ex16_14.sce b/3137/CH16/EX16.14/Ex16_14.sce new file mode 100755 index 000000000..af3141f31 --- /dev/null +++ b/3137/CH16/EX16.14/Ex16_14.sce @@ -0,0 +1,16 @@ +//Initilization of variables
+W=20 //lb
+g=32.2 //ft/s^2
+vb=0.5 //rad/s
+//Calculations
+//Using equations of motion
+//Solving the three equations simultaneously by matrix method
+X=[0,1,-(W/g)*5.2;-1,0,-(W/g)*3;3,-3,-(1/12)*(W/g)*12^2]
+Y=[-0.75*(W/g);(W/g)*1.3-W;0]
+C=inv(X)*Y
+A=C(1) //lb
+B=C(2) //lb
+alpha=C(3) //rad/s^2
+//Result
+clc
+printf('The value of alpha is %f rad/s^2 and of A and B are %f lb \nand %f lb respectively',alpha,A,B)
|