summaryrefslogtreecommitdiff
path: root/3137/CH16/EX16.16
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.16
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.16')
-rwxr-xr-x3137/CH16/EX16.16/Ex16_16.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3137/CH16/EX16.16/Ex16_16.sce b/3137/CH16/EX16.16/Ex16_16.sce
new file mode 100755
index 000000000..f6bfd3395
--- /dev/null
+++ b/3137/CH16/EX16.16/Ex16_16.sce
@@ -0,0 +1,22 @@
+//Initilization of variables
+mc=7.25 //kg
+d=0.9 //m
+la=0.2 //m
+ma=9 //kg
+F=45 //N
+ay=0 //m/s^2
+g=9.8 //m/s^2
+//Calculations
+I=2*(0.5*mc*(d/2)^2)+0.5*ma*(la/2)^2 //kg-m^2
+//Using the equations of motion
+Na=(2*mc+ma)*g //N
+//Simplfying using radial velocity formula
+//Solving the two equations using matrix method
+A=[-1,-(2*mc+ma);(d/2),-I/(d/2)]
+B=[-F;F*(la/2)]
+C=inv(A)*B
+F=C(1) //N
+ax=C(2) //m/s^2
+//Result
+clc
+printf('The computation yields ax=%f m/s^2',ax)