summaryrefslogtreecommitdiff
path: root/3204/CH14/EX14.24/Ex14_24.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3204/CH14/EX14.24/Ex14_24.sce
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 '3204/CH14/EX14.24/Ex14_24.sce')
-rw-r--r--3204/CH14/EX14.24/Ex14_24.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3204/CH14/EX14.24/Ex14_24.sce b/3204/CH14/EX14.24/Ex14_24.sce
new file mode 100644
index 000000000..a14a9e70a
--- /dev/null
+++ b/3204/CH14/EX14.24/Ex14_24.sce
@@ -0,0 +1,13 @@
+// Initilization of variables
+M=15 // kg // mass of the wedge
+m=6 // kg // mass of the block
+theta=30 // degree // angle of the wedge
+g=9.81 // m/s^2 // acc due to gravity
+// Calculations
+a_A=((m*g*cosd(theta)*sind(theta))/((M)+(m*(sind(theta))^2)))/(g) // g // By eliminating R_1 from eq'n 1&3.
+// Here, assume a_r is the acceleration of block B relative to wedge A which is given by substuting a_A in eq'n 2
+a_r=(((g*sind(theta))*(m+M))/((M)+(m*(sind(theta))^2)))/(g) // g
+// Results
+clc
+printf('(a) The acceleration of the wedge is %f g \n',a_A)
+printf('(b) The acceleration of the bock relative to the wedge is %f g \n',a_r)