summaryrefslogtreecommitdiff
path: root/1871/CH7/EX7.12
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1871/CH7/EX7.12
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1871/CH7/EX7.12')
-rwxr-xr-x1871/CH7/EX7.12/Ch07Ex12.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1871/CH7/EX7.12/Ch07Ex12.sce b/1871/CH7/EX7.12/Ch07Ex12.sce
new file mode 100755
index 000000000..094eef7b0
--- /dev/null
+++ b/1871/CH7/EX7.12/Ch07Ex12.sce
@@ -0,0 +1,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 \ No newline at end of file