summaryrefslogtreecommitdiff
path: root/1427/CH18/EX18.35/18_35.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH18/EX18.35/18_35.sce')
-rw-r--r--1427/CH18/EX18.35/18_35.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1427/CH18/EX18.35/18_35.sce b/1427/CH18/EX18.35/18_35.sce
new file mode 100644
index 000000000..a3ba76ede
--- /dev/null
+++ b/1427/CH18/EX18.35/18_35.sce
@@ -0,0 +1,13 @@
+//ques-18.35
+//Calculating q w U H G and A
+clc
+n=1;//moles of ideal gas
+V1=5; V2=10;//volume (in L)
+T=300;//temperature (in K)
+U=0;//for isothemal and reversible process
+H=0;//for isothemal and reversible process
+G=-n*8.314*T*log(V2/V1);
+A=G;
+w=-G;
+q=w;
+printf("q=w=%.0f J/mol, U=H=0, G=A=%.0f J/mol.",q,A);