diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /858/CH3/EX3.16 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '858/CH3/EX3.16')
-rwxr-xr-x | 858/CH3/EX3.16/example_16.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/858/CH3/EX3.16/example_16.sce b/858/CH3/EX3.16/example_16.sce new file mode 100755 index 000000000..372f5cac7 --- /dev/null +++ b/858/CH3/EX3.16/example_16.sce @@ -0,0 +1,22 @@ +clc
+clear
+printf("example 3.16 page number 107\n\n")
+
+//to compare the enthalpy change in two reactions
+
+H0_glucose = -1273 //in kJ
+H0_ethanol = -277.6 //in kJ
+H0_CO2 = -393.5 //in kJ
+H0_H2O = -285.8 //in kJ
+
+//for reaction 1
+delta_H1 = 2*H0_ethanol+2*H0_CO2-H0_glucose;
+printf("enthalpy change in reaction 1 = %f KJ",delta_H1)
+
+//for reaction 2
+delta_H2 = 6*H0_H2O+6*H0_CO2-H0_glucose;
+printf("\n\nenthalpy change in reaction 2 = %f kJ",delta_H2)
+
+if delta_H1>delta_H2 then disp ("reaction 2 supplies more energy")
+ else disp ("reaction 1 supplies more energy")
+end
|