summaryrefslogtreecommitdiff
path: root/3137/CH13/EX13.16
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3137/CH13/EX13.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/CH13/EX13.16')
-rwxr-xr-x3137/CH13/EX13.16/Ex13_16.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3137/CH13/EX13.16/Ex13_16.sce b/3137/CH13/EX13.16/Ex13_16.sce
new file mode 100755
index 000000000..db932e68b
--- /dev/null
+++ b/3137/CH13/EX13.16/Ex13_16.sce
@@ -0,0 +1,21 @@
+//Initilization of variables
+m1=14 //kg
+m2=7 //kg
+theta=45 //degrees
+u_1=1/4 //coefficient of friction between mass 1 and plane
+u_2=3/8 //coefficient of friction between mass 2 and plane
+g=9.8 //m/s^2
+//Calculations
+//The equations of motion for m1 are
+N1=m1*g*cosd(theta) //N
+F1=u_1*N1 //N
+//The equations of motion for m2 are
+N2=m2*g*cosd(theta) //N
+F2=u_2*N2 //N
+//Now to get T and a we solve using matrix method
+A=[-1,-m1;1,-m2]
+B=[-(m1*g*sind(theta)-F1);-(m2*g*sind(theta)-F2)]
+C=inv(A)*B
+//Result
+clc
+printf('The Value of T is %fN',C(1))