summaryrefslogtreecommitdiff
path: root/632/CH11/EX11.2/example11_2.sce
blob: 5000ca0620f3b4af24d44764a8e6932f6c0e17ac (plain)
1
2
3
4
5
6
7
8
9
10
//clc()
PE = 1.5*10^3;//J
m = 10;//kg
g = 9.81;//m/s^2
v = 50;//m/s
//PE = mgz
z = PE / (m*g);
KE = m* (v^2) / 2;
disp("m",z,"Height of the body from the ground = ")
disp("kJ",KE/1000,"Kinetic energy of the body = ")