blob: 05adff08993adced57c23428456d6199013e19c4 (
plain)
1
2
3
4
5
6
7
|
//Example 28.6
m=1*10^-3;//Mass (kg)
c=3*10^8;//Speed of light (m/s)
E_0=m*c^2;//Rest energy (J)
printf('Rest energy = %0.2e J',E_0)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|