summaryrefslogtreecommitdiff
path: root/1871/CH7/EX7.12/Ch07Ex12.sce
blob: 094eef7b0ec883ecac9432c29100a74bafb28178 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Scilab code Ex7.12: Pg:307 (2008)
clc;clear;
c = 3e+08;    // Velocity of light, m/s
delta_m =0.1/100*1;    // Mass lost in one kg of substance, kg
delta_E = delta_m*c^2;    // Energy liberated by the fission of one kg of substance, joule
// Since 1kWh = 1000 watt*3600 sec = 3.6e+06 joule
delta_E = delta_m*c^2/3.6e+06;    // Energy liberated by the fission of one kg of substance, kWh
printf("\nThe energy liberated by the fission of one kg of substance = %3.2e kWh", delta_E);

// Result 
// The energy liberated by the fission of one kg of substance = 2.50e+007 kWh