summaryrefslogtreecommitdiff
path: root/3137/CH16/EX16.12
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.12
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.12')
-rwxr-xr-x3137/CH16/EX16.12/Ex16_12.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3137/CH16/EX16.12/Ex16_12.sce b/3137/CH16/EX16.12/Ex16_12.sce
new file mode 100755
index 000000000..01ca0aaed
--- /dev/null
+++ b/3137/CH16/EX16.12/Ex16_12.sce
@@ -0,0 +1,16 @@
+//Initilization of variables
+W=644 //lb
+F=30 //lb
+theta=30 //degrees
+r=1.5 //ft
+g=32.2 //ft/s^2
+//Calculations
+//Using equations of motion
+//Solving by matrix method
+A=[1,-W/g;-r,-(1/2)*(W/g)*(2*2)*(1/r)]
+B=[W*sind(theta)-F*cosd(theta);-F*2]
+C=inv(A)*B
+a=C(2) //ft/s^2
+//Result
+clc
+printf('The value of a is %f ft/s^2',a)