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/CH1/EX1.5/example_5.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 858/CH1/EX1.5/example_5.sce (limited to '858/CH1/EX1.5/example_5.sce') diff --git a/858/CH1/EX1.5/example_5.sce b/858/CH1/EX1.5/example_5.sce new file mode 100755 index 000000000..68ae9dcb7 --- /dev/null +++ b/858/CH1/EX1.5/example_5.sce @@ -0,0 +1,16 @@ +clc +clear + +printf("example 1.5 page number 24\n\n") + +//to calculate amount of CO2 released by water +p=746 //in mm Hg +H=1.08*10^6 //in mm Hg, Henry's constant + +x= p/H; //mole fraction of CO2 +X=x*(44/18); //mass ratio of CO2 in water + +initial_CO2 = 0.005; //kg CO2/kg H20 +G=1000*(initial_CO2-X); + +printf("CO2 given up by 1 cubic meter of water = %f kg CO2/cubic meter H20",G) -- cgit