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 /944/CH7/EX7.16 | |
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 '944/CH7/EX7.16')
-rwxr-xr-x | 944/CH7/EX7.16/example7_16_TACC.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/944/CH7/EX7.16/example7_16_TACC.sce b/944/CH7/EX7.16/example7_16_TACC.sce new file mode 100755 index 000000000..d2bcdb095 --- /dev/null +++ b/944/CH7/EX7.16/example7_16_TACC.sce @@ -0,0 +1,25 @@ +//example 7.16
+
+clear;
+clc;
+
+//Given:
+T=1273;//Temperature[K]
+h=6.26*10^-27;//Planck's constant[J.s]
+k=1.381*10^-16;//Boltzmann constant[erg/K]
+T=1000;//Temperature[degrees]
+m=3.82*10^-23;//mass of Na [gm]
+I=(1.91*10^-23)*(3.078*10^-8)^2;//moment of inertia[gm.cm2]
+dE=0.73*1.602*10^-12;//[erg]
+v=159.23*(3*10^10);//frequency [s-1]
+R=82;//universal gas constant[cm3.atm/deg]
+u=2;//symmetry number
+L=6.023*10^23;//avogadro's number
+
+//To find the equilibrium constant
+p=((3.14*m*k*T)^1.5)/h/h/h;
+s=R*u*h*h/L/8/3.14/3.14/I/k;
+q=1-(exp(-h*v/k/T));
+r=exp(-dE/k/T);
+Kp=p*s*q*r;//Equilibrium constant
+printf("The equilibrium constant is %f",Kp);
\ No newline at end of file |