summaryrefslogtreecommitdiff
path: root/944/CH5/EX5.14
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /944/CH5/EX5.14
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '944/CH5/EX5.14')
-rwxr-xr-x944/CH5/EX5.14/example5_14_TACC.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/944/CH5/EX5.14/example5_14_TACC.sce b/944/CH5/EX5.14/example5_14_TACC.sce
new file mode 100755
index 000000000..222526ca6
--- /dev/null
+++ b/944/CH5/EX5.14/example5_14_TACC.sce
@@ -0,0 +1,16 @@
+//example 5.14
+
+clear;
+clc;
+
+//Given:
+n=1;//no. of moles
+T=300;//temperature[K]
+V1=2;//initial volume[m3]
+V2=20;//final volume[m3]
+R=8.314;//Universal gas constant[J/K/mol]
+
+
+//To find the work function or Helmholts free energy
+A=-n*R*T*log(V2/V1);//Change in work function[J/mol]
+printf("The change in Helmholts free energy is %f J/mol",A); \ No newline at end of file