summaryrefslogtreecommitdiff
path: root/1967/CH12/EX12.2/12_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1967/CH12/EX12.2/12_2.sce')
-rwxr-xr-x1967/CH12/EX12.2/12_2.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1967/CH12/EX12.2/12_2.sce b/1967/CH12/EX12.2/12_2.sce
new file mode 100755
index 000000000..3bc3c81b6
--- /dev/null
+++ b/1967/CH12/EX12.2/12_2.sce
@@ -0,0 +1,21 @@
+clc
+//initialisation of variables
+clear
+p1= 50 //atm
+p2= 100 //atm
+p3= 200 //atm
+p4= 400 //atm
+r1= 0.98
+r2= 0.97
+r3= 0.98
+r4= 1.07
+//CALCULATIONS
+f1= p1*r1
+f2= p2*r1
+f3= p3*r3
+f4= p4*r4
+//RESULTS
+printf ('fugacity of nitrogen gas = %.f atm',f1)
+printf ('\n fugacity of nitrogen gas = %.f atm',f2)
+printf ('\n fugacity of nitrogen gas = %.f atm',f3)
+printf ('\n fugacity of nitrogen gas = %.f atm',f4)