summaryrefslogtreecommitdiff
path: root/1958/CH2/EX2.2/Chapter2_example2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1958/CH2/EX2.2/Chapter2_example2.sce')
-rwxr-xr-x1958/CH2/EX2.2/Chapter2_example2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1958/CH2/EX2.2/Chapter2_example2.sce b/1958/CH2/EX2.2/Chapter2_example2.sce
new file mode 100755
index 000000000..d0a0c8218
--- /dev/null
+++ b/1958/CH2/EX2.2/Chapter2_example2.sce
@@ -0,0 +1,14 @@
+clc
+clear
+//Input data
+m=10//Mass of block in kg
+q=40//Angle made by the force with horizontal in degrees
+s=5//Horizontal displacement of the block in m
+u=0.3//Coefficient of kinematic friction
+
+//Calculations
+F=(u*m*9.8)/(cosd(q)+(u*sind(q)))//Pulling force in N
+W=(F*cosd(q))*s//Workdone by the pulling force in J
+
+//Output
+printf('Workdone by the pulling force is %3.2f J',W)