diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /172/CH16/EX16.3/ex3.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '172/CH16/EX16.3/ex3.sce')
-rwxr-xr-x | 172/CH16/EX16.3/ex3.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/172/CH16/EX16.3/ex3.sce b/172/CH16/EX16.3/ex3.sce new file mode 100755 index 000000000..01cc047eb --- /dev/null +++ b/172/CH16/EX16.3/ex3.sce @@ -0,0 +1,13 @@ +//ques3
+//calculating equilibrium constant
+clear
+clc
+dG1=-457.166;//change in gibbs free energy at temp 298 K from example2 in kJ
+dG2=-271.040;;//change in gibbs free energy at temp 2000 K from example2 n kJ
+T1=298;//K
+T2=2000;//K
+R=8.3145;//gas constant
+K1=dG1*1000/(R*T1);
+K2=dG2*1000/(R*T2);
+printf('Equilibrium constant at %.0f K = %.3f \n',T1,K1);
+printf(' Equilibrium constant at %.0f K = %.3f \n',T2,K2);
\ No newline at end of file |