summaryrefslogtreecommitdiff
path: root/632/CH2/EX2.6/example2_6.sce
blob: 772b855c95de855f7e2fdf06e66f4bd171ec4307 (plain)
1
2
3
4
5
6
7
8
9
//clc()
z = 15;//m
PE = 2000;//J
g = 9.8067;//m/s^2
m = PE/(z*g);
disp("kg",m,"mass = ")
v = 50;//m/s
KE = 1/2*m*(v^2)/1000;
disp("kJ",KE,"kinetic energy = ")