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/CH9/EX9.5 | |
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/CH9/EX9.5')
-rwxr-xr-x | 24/CH9/EX9.5/Example9_5.sce | 13 | ||||
-rwxr-xr-x | 24/CH9/EX9.5/Example9_5_result.txt | 2 |
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 |