summaryrefslogtreecommitdiff
path: root/896/CH7/EX7.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /896/CH7/EX7.2
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '896/CH7/EX7.2')
-rwxr-xr-x896/CH7/EX7.2/2.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/896/CH7/EX7.2/2.sce b/896/CH7/EX7.2/2.sce
new file mode 100755
index 000000000..07c91df3d
--- /dev/null
+++ b/896/CH7/EX7.2/2.sce
@@ -0,0 +1,10 @@
+clc
+//Example 7.2
+//Calulate the final velocity of duck after being hit by a bullet
+m_duck=3//lbm
+v_duck=-15//ft/s due west
+m_bullet=0.05//lbm
+v_bullet=1000//ft/s due east
+//total initial momentum = final momentum
+v_sys=((m_duck*v_duck)+(m_bullet*v_bullet))/(m_duck+m_bullet)//ft/s
+printf("The final velocity of the duck is %f ft/s",v_sys); \ No newline at end of file