diff options
Diffstat (limited to '1427/CH18/EX18.45')
-rw-r--r-- | 1427/CH18/EX18.45/18_45.sce | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/1427/CH18/EX18.45/18_45.sce b/1427/CH18/EX18.45/18_45.sce new file mode 100644 index 000000000..a8148a134 --- /dev/null +++ b/1427/CH18/EX18.45/18_45.sce @@ -0,0 +1,7 @@ +//ques-18.45
+//Calculating change in chemical potential of a substance
+clc
+P1=1; P2=0.5;//partial pressure (in atm)
+T=298;//temperature (in K)
+C_P=8.314*T*log(P2/P1);
+printf("The change in chemical potential is %.4f kJ/mol.",C_P/1000);
|