//Example 7.2 m=30;//Mass (kg) v=0.500;//Speed (m/s) KE=(1/2)*m*v^2;//Kinetic energy (J) printf('Kinetic energy = %0.2f J',KE) //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest