summaryrefslogtreecommitdiff
path: root/1991/CH2/EX2.21/21.sce
blob: c1c63565ef883fc25007d27bcd5d9d381205e3a5 (plain)
1
2
3
4
5
6
7
8
9
clc
clear
//input
v=0.6//speed
m=0.3//mass
//calculation
e=0.75*m*v*v//total kinetic energy is kinetic energy+moment of inertia
//output
printf("the total kinetic energy is %3.3f J",e)