summaryrefslogtreecommitdiff
path: root/2774/CH1/EX1.6/Ex1_6.sce
blob: 84deb81149f980b079e12550748fb2b55579686a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
// solution

// initialization of variables
ma=2200 // mass of Automobile 'a' in kg
va=25 //velocity of Automobile 'a' in m/s before collision
va1=13.89 // velocity of Automobile 'a' after collision in m/s
mb=1000 // mass of Automobile 'b' in kg
vb=24.44 //velocity of Automobile 'b' after collision in m/s

KE1=(ma*va**2)/2 // kinetic energy before collision
KE2=(ma*va1**2)/2+(mb*vb**2)/2 // kinetic energy after collision
U=(KE1-KE2)/1000 // internal energy from conservation of energy principle in kJ
printf("The increase in kinetic energy is of %.1f kJ",U)