summaryrefslogtreecommitdiff
path: root/1016/CH14/EX14.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1016/CH14/EX14.3
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 '1016/CH14/EX14.3')
-rwxr-xr-x1016/CH14/EX14.3/ex14_3.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/1016/CH14/EX14.3/ex14_3.sce b/1016/CH14/EX14.3/ex14_3.sce
new file mode 100755
index 000000000..8402d8105
--- /dev/null
+++ b/1016/CH14/EX14.3/ex14_3.sce
@@ -0,0 +1,24 @@
+clc;clear;
+//Example 14.3
+
+//given data
+m1=1.00813;//mass of 1H1 in a.m.u
+m2=4.00386;//mass of 2He4 in a.m.u
+SC=1.35;//solar constant in kW/m^2
+d=1.5*10^11;//dist b/w earth and sum in m
+e=1.6*10^-19;//the charge on electron in C
+Na=6.02*10^26;//Avgraodo no. in 1/kg mole
+pi=3.14;//const
+//rxn = 4 1H1 = 2He4 + 2 1e0
+
+//calculations
+dm=(4*m1)-m2
+E=dm*931;//energy produced in MeV
+EP=E/4;//energy produced per atom
+EP=EP*10^6*e;//conversion in J
+EPkg=EP*Na;//energy produced by 1 kg of hydrogen
+SC=SC*1000;//conversion in J/s-m^2
+SA=4*pi*d^2;//surface area of sphere
+ER=SC*SA;//energy recieved per second
+m=ER/EPkg;
+disp((m/10^3),'mass of hydrogen consumed in tonnes/second') \ No newline at end of file