From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 858/CH3/EX3.16/example_16.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 858/CH3/EX3.16/example_16.sce (limited to '858/CH3/EX3.16/example_16.sce') 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 -- cgit