summaryrefslogtreecommitdiff
path: root/24/CH9/EX9.5
diff options
context:
space:
mode:
Diffstat (limited to '24/CH9/EX9.5')
-rwxr-xr-x24/CH9/EX9.5/Example9_5.sce13
-rwxr-xr-x24/CH9/EX9.5/Example9_5_result.txt2
2 files changed, 15 insertions, 0 deletions
diff --git a/24/CH9/EX9.5/Example9_5.sce b/24/CH9/EX9.5/Example9_5.sce
new file mode 100755
index 000000000..9861ad72c
--- /dev/null
+++ b/24/CH9/EX9.5/Example9_5.sce
@@ -0,0 +1,13 @@
+//Given that
+//Before collision
+m = 6 //in kg
+v = 4 //in m/sec
+//After collision
+m1 = 2 //in kg
+
+//Sample Problem 9-5
+printf("**Sample Problem 9-5**\n")
+m2 = m - m1
+v1 = 8.0 //in m/s
+v2 = (m*v - m1*v1)/m2
+printf("The velocity of peiece having mass m2 is %dm/s", v2) \ No newline at end of file
diff --git a/24/CH9/EX9.5/Example9_5_result.txt b/24/CH9/EX9.5/Example9_5_result.txt
new file mode 100755
index 000000000..ccf8d809b
--- /dev/null
+++ b/24/CH9/EX9.5/Example9_5_result.txt
@@ -0,0 +1,2 @@
+**Sample Problem 9-5**
+The velocity of peiece having mass m2 is 2m/s \ No newline at end of file