summaryrefslogtreecommitdiff
path: root/1991/CH2/EX2.14/14.sce
diff options
context:
space:
mode:
Diffstat (limited to '1991/CH2/EX2.14/14.sce')
-rwxr-xr-x1991/CH2/EX2.14/14.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1991/CH2/EX2.14/14.sce b/1991/CH2/EX2.14/14.sce
new file mode 100755
index 000000000..752f59ba1
--- /dev/null
+++ b/1991/CH2/EX2.14/14.sce
@@ -0,0 +1,12 @@
+clc
+clear
+//input
+m1=1//mass of object 1
+v1=25//velocity of object 1
+m2=2//mass of object 2
+v2=0//body at rest,velocity =0
+v3=10
+//caclulation
+u=((m1*v1)+(m2*v2)-(m2*v3))/2//applying princilpe of conservation of linear momentum
+//output
+printf("\n the value of u is %3.3f ms^-1",-u)