diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3137/CH17/EX17.6 | |
download | Scilab-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/CH17/EX17.6')
-rwxr-xr-x | 3137/CH17/EX17.6/Ex17_6.sci | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/3137/CH17/EX17.6/Ex17_6.sci b/3137/CH17/EX17.6/Ex17_6.sci new file mode 100755 index 000000000..f35d9b4aa --- /dev/null +++ b/3137/CH17/EX17.6/Ex17_6.sci @@ -0,0 +1,21 @@ +//Initilization of variables
+m=5 //kg
+d=6 //m
+theta1=30 //degrees
+theta2=10 //degrees
+u=0.2 //coefficient of friction
+g=9.8 //m/s^2
+F=70 //N
+//Calculations
+//Using free body diagram
+Na=m*g*cosd(theta1)-(F*sind(theta2)) //N
+//work done by each force
+W=[F*cosd(theta2),-m*g*sind(theta1),0,-u*Na*d] //N.m
+//Total Work Done
+W_tot=W(1)+W(2)+W(3)+W(4) //N.m
+//Using resultant
+R=F*cosd(theta2)-(u*Na)-(m*g*sind(theta1)) //N
+W_d=R*d //N.m (Work Done)
+//Result
+clc
+printf('The work done is %f N.m',W_d)
|