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 /24/CH7/EX7.2 | |
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 '24/CH7/EX7.2')
-rwxr-xr-x | 24/CH7/EX7.2/Example7_2.sce | 31 | ||||
-rwxr-xr-x | 24/CH7/EX7.2/Example7_2_result.txt | 9 |
2 files changed, 40 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 diff --git a/24/CH7/EX7.2/Example7_2_result.txt b/24/CH7/EX7.2/Example7_2_result.txt new file mode 100755 index 000000000..1075d9f83 --- /dev/null +++ b/24/CH7/EX7.2/Example7_2_result.txt @@ -0,0 +1,9 @@ +**Sample Problem 7-2a**
+The spies transfer 1.534484e+002J amount of energy during the given displacement
+
+**Sample Problem 7-2b**
+Work done by the normal in the process is 0J
+Work done by the gravity in the process is 0J
+
+**Sample Problem 7-2c**
+The final velocity of the safe is equal to 1.167898e+000
|