summaryrefslogtreecommitdiff
path: root/3204/CH14/EX14.20
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.20
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.20')
-rw-r--r--3204/CH14/EX14.20/Ex14_20.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3204/CH14/EX14.20/Ex14_20.sce b/3204/CH14/EX14.20/Ex14_20.sce
new file mode 100644
index 000000000..abb0e4025
--- /dev/null
+++ b/3204/CH14/EX14.20/Ex14_20.sce
@@ -0,0 +1,13 @@
+// Initilization of variables
+M_1=5 // kg // mass of the 1st block
+theta_1=30 // degree // inclination of the 1st plane
+M_2=10 // kg // mass of the 2nd block
+theta_2=60 // degree // inclination of the 2nd plane
+mu=0.33 // coefficient of friction between the blocks and the inclined plane
+g=9.81 // m/s^2 // acc due to gravity
+// Calculations
+// solving eq'n 1 & 2 for a we get,
+a=((((M_2*(sind(theta_2)-(mu*cosd(theta_2))))-(M_1*(sind(theta_1)+(mu*cosd(theta_1))))))*g)/(M_1+M_2) // m/s^2
+// Results
+clc
+printf('The acceleration of the masses is %f m/s^2 \n',a)