summaryrefslogtreecommitdiff
path: root/1427/CH25/EX25.13
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH25/EX25.13')
-rw-r--r--1427/CH25/EX25.13/25_13.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1427/CH25/EX25.13/25_13.sce b/1427/CH25/EX25.13/25_13.sce
new file mode 100644
index 000000000..e227c33a5
--- /dev/null
+++ b/1427/CH25/EX25.13/25_13.sce
@@ -0,0 +1,10 @@
+//ques-25.13
+//Calculating pressure using van der Waals equation
+clc
+n=2;//moles of ammonia
+T=300;//temperature (in K)
+V=5*10^-3;//volume (in kL)
+a=0.417;//(in Nm^4/mol^2)
+b=0.037*10^-3;//(in kL/mol)
+P=((n*8.314*T)/(V-n*b))-((a*n^2)/(V^2));
+printf("The pressure required is %d N/m^2.",P);