summaryrefslogtreecommitdiff
path: root/1871/CH7/EX7.2
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.2
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.2')
-rwxr-xr-x1871/CH7/EX7.2/Ch07Ex2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1871/CH7/EX7.2/Ch07Ex2.sce b/1871/CH7/EX7.2/Ch07Ex2.sce
new file mode 100755
index 000000000..e4340ec72
--- /dev/null
+++ b/1871/CH7/EX7.2/Ch07Ex2.sce
@@ -0,0 +1,14 @@
+// Scilab code Ex7.2: Pg:275 (2008)
+clc;clear;
+M_H = 1e-03; // Mass of hydrogen, kg
+M_He = 0.993e-03; // Mass of helium, kg
+delta_m = M_H-M_He; // Mass defect, amu
+c = 3e+08; // Velocity of light, m/s
+E = delta_m*c^2; // Energy released, joules
+EL = (5/100)*E/36e+05; // Electrical energy, kilowatt hour
+printf("\nThe energy released in joule in a thermonuclear reaction = %4.1e joule", E);
+printf("\nThe electrical energy in kilowatt hours in a thermonuclear reaction = %4.2e kilowatt hour", EL);
+
+// Result
+// The energy released in joule in a thermonuclear reaction = 6.3e+011 joule
+// The electrical energy in kilowatt hours in a thermonuclear reaction = 8.75e+003 kilowatt hour \ No newline at end of file