summaryrefslogtreecommitdiff
path: root/24/CH7/EX7.2/Example7_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '24/CH7/EX7.2/Example7_2.sce')
-rwxr-xr-x24/CH7/EX7.2/Example7_2.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/24/CH7/EX7.2/Example7_2.sce b/24/CH7/EX7.2/Example7_2.sce
new file mode 100755
index 000000000..6a2b6d7e2
--- /dev/null
+++ b/24/CH7/EX7.2/Example7_2.sce
@@ -0,0 +1,31 @@
+exec("degree_rad.sci",-1)
+
+//Given that
+mass = 225 //in kg
+displacement = 8.5 //in meter
+F1 = 12 //in N
+Theta1 = dtor(30) //in rad
+F2 = 10 //in N
+Theta2 = dtor(40) //in rad
+
+//Sample Problem 7-2a
+printf("**Sample Problem 7-2a**\n")
+//form the definition of Work done
+W1 = F1 * displacement * cos(Theta1)
+W2 = F2 * displacement * cos(Theta2)
+//The net work done
+W = W1 + W2
+printf("The spies transfer %eJ amount of energy during the given displacement\n", W)
+
+//Sample Problem 7-2b
+printf("\n**Sample Problem 7-2b**\n")
+printf("Work done by the normal in the process is 0J\n")
+printf("Work done by the gravity in the process is 0J\n")
+
+//Sample Problem 7-2c
+printf("\n**Sample Problem 7-2c**\n")
+//Using Work Energy theorem
+//W = Kf - Ki
+//Ki = 0
+v_final = sqrt(2* W/mass)
+printf("The final velocity of the safe is equal to %e", v_final) \ No newline at end of file