summaryrefslogtreecommitdiff
path: root/3648/CH25/EX25.5/Ex25_5.sce
blob: 7cde91c06a3204088551ae000872f27b5b3c6479 (plain)
1
2
3
4
5
6
7
8
9
10
//Example 25_5
clc();
clear;
//To compare the energy that obtained by changing all mass to energy
m=0.1       //units in Kg
c=3*10^8      //Units in meters/sec
e=m*c^2        //units in J    
printf("The energy that is obtained by changing all mass to energy is E=")
disp(e)
printf("J")