From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3137/CH13/EX13.16/Ex13_16.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 3137/CH13/EX13.16/Ex13_16.sce (limited to '3137/CH13/EX13.16') 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)) -- cgit