summaryrefslogtreecommitdiff
path: root/1388/CH7/EX7.17
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1388/CH7/EX7.17
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 '1388/CH7/EX7.17')
-rwxr-xr-x1388/CH7/EX7.17/7_18.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1388/CH7/EX7.17/7_18.sce b/1388/CH7/EX7.17/7_18.sce
new file mode 100755
index 000000000..a4d9c604f
--- /dev/null
+++ b/1388/CH7/EX7.17/7_18.sce
@@ -0,0 +1,15 @@
+clc
+//initialisation of variables
+v= 0.11834 //volt
+F= 96493.1 //coloumb
+n= 1 //electron
+R= 8.3144 //J/mol K
+T= 25 //C
+m= 0.1
+m1= 0.9862
+//CALCULATIONS
+G= -n*F*v
+G1= 2*R*(273.16+T)*log(m/m1)
+//RESULTS
+printf (' Gibs free energy = %.f joules',G)
+printf (' \n Gibs free energy = %.f joules',G1)