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.4/example_4.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 858/CH1/EX1.4/example_4.sce (limited to '858/CH1/EX1.4/example_4.sce') diff --git a/858/CH1/EX1.4/example_4.sce b/858/CH1/EX1.4/example_4.sce new file mode 100755 index 000000000..af15455ac --- /dev/null +++ b/858/CH1/EX1.4/example_4.sce @@ -0,0 +1,17 @@ +clc +clear +printf("example 1.4 page number 24\n\n") +//to find volume of NH3 dissolvable in water + +p=1 //atm +H=2.7 //atm +x=p/H; + +mole_ratio = (x)/(1-x); +moles_of_water=(100*1000)/18; +moles_of_NH3=mole_ratio*moles_of_water; + +printf("moles of NH3 dissolved = %f\n\n",moles_of_NH3) + +volume_NH3=(moles_of_NH3*22.4*293)/273; +printf("volume of NH3 dissolved = %f liters",volume_NH3) -- cgit