diff options
Diffstat (limited to '1991/CH2/EX2.13/13.sce')
-rwxr-xr-x | 1991/CH2/EX2.13/13.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1991/CH2/EX2.13/13.sce b/1991/CH2/EX2.13/13.sce new file mode 100755 index 000000000..3fc0fcdf1 --- /dev/null +++ b/1991/CH2/EX2.13/13.sce @@ -0,0 +1,12 @@ +clc
+clear
+//input
+m1=1
+v1=25
+m2=2
+v2=0
+//calculation
+v=(m1*v1)+(m2*v2)//applying princilpe of conservation of linear momentum
+v4=v/(m1+m2)
+//output
+printf("the velocity with which both will move is %3.3f ms^-1",v4)
|