summaryrefslogtreecommitdiff
path: root/3886/CH17/EX17.15/17_15.sce
blob: 7ecdfd4e6ff18062ee15aa0940eb0c5c65f116d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
//A gun
//applying principle of conservation of momentum
v=-5  //m/sec
printf("\nGun will have a velocity of %.2d m/sec in the direction opposite to that of bullet",-v)
//Let the gun recoil for a distance s
//Using work energy equation
s=(300*25)/(2*9.81*600)  //m
//Applying impulse momentum equation to gun
t=(300*5)/(600*9.81)  //sec
printf("\ns=%.3f m\nt=%.3f sec",s,t)