summaryrefslogtreecommitdiff
path: root/1427/CH25/EX25.18/25_18.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH25/EX25.18/25_18.sce')
-rw-r--r--1427/CH25/EX25.18/25_18.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1427/CH25/EX25.18/25_18.sce b/1427/CH25/EX25.18/25_18.sce
new file mode 100644
index 000000000..78e35f2f8
--- /dev/null
+++ b/1427/CH25/EX25.18/25_18.sce
@@ -0,0 +1,13 @@
+//ques-25.18
+//Calculating volume occupied by oxygen using ideal gas equation and van der Waals equation
+clc
+n=3;//moles of oxygen
+P=50;//pressure (in atm)
+T=373;//temperature (in K)
+a=1.36;//(in L^2 atm/mol^2)
+b=0.0318;//(in L/mol)
+//Ideal Gas equation
+V1=(n*0.0821*T)/P;
+//Van der Waals equation
+V2=n*b+(n*0.0821*T)/(P+a*n^2/V^2);
+printf("The volume occupied by oxygen calculated using ideal gas equation is %.2f L and using van der Waals equation is %.2f L.",V1,V2);