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 --- 1967/CH12/EX12.1/12_1.sce | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 1967/CH12/EX12.1/12_1.sce (limited to '1967/CH12/EX12.1/12_1.sce') diff --git a/1967/CH12/EX12.1/12_1.sce b/1967/CH12/EX12.1/12_1.sce new file mode 100755 index 000000000..ceb5bec46 --- /dev/null +++ b/1967/CH12/EX12.1/12_1.sce @@ -0,0 +1,29 @@ +clc +//initialisation of variables +clear +p1= 50 //atm +p2= 100 //atm +p3= 200 //atm +p4= 400 //atm +p5= 800 //atm +p6= 1000 //atm +r1= 0.979 +r2= 0.967 +r3= 0.971 +r4= 1.061 +r5= 1.489 +r6= 1.834 +//CALCULATIONS +f1= r1*p1 +f2= r2*p2 +f3= r3*p3 +f4= r4*p4 +f5= r5*p5 +f6= r6*p6 +//RESULTS +printf ('fugacity of nitrogen gas = %.2f atm',f1) +printf ('\n fugacity of nitrogen gas = %.1f atm',f2) +printf ('\n fugacity of nitrogen gas = %.1f atm',f3) +printf ('\n fugacity of nitrogen gas = %.1f atm',f4) +printf ('\n fugacity of nitrogen gas = %.f atm',f5) +printf ('\n fugacity of nitrogen gas = %.f atm',f6) -- cgit