summaryrefslogtreecommitdiff
path: root/3689/CH14/EX14.7/14_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3689/CH14/EX14.7/14_7.sce')
-rw-r--r--3689/CH14/EX14.7/14_7.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3689/CH14/EX14.7/14_7.sce b/3689/CH14/EX14.7/14_7.sce
new file mode 100644
index 000000000..173eb6e7c
--- /dev/null
+++ b/3689/CH14/EX14.7/14_7.sce
@@ -0,0 +1,20 @@
+////
+//Variable Declarations
+h = 6.626e-34 //Planks constant, J.s
+k = 1.38e-23 //Boltzman constant, J/K
+c = 3.0e8 //speed of light, m/s
+Ba = 1.48 //Spectrum for OCS, 1/cm
+Bb = list(2.84,0.191,0.179) //Spectrum for ONCI, 1/c
+Bc = list(9.40,1.29,1.13) //Spectrum for CH2O, 1/cm
+T = 298.0 //Temperture of Hydrogen, K
+sigmab = 1
+sigmac = 2
+
+//Calculations
+qRa = k*T/(h*c*100*Ba)
+qRb = (sqrt(%pi)/sigmab)*(k*T/(h*c*100))**(3./2)*sqrt(1/Bb(1))*sqrt(1/Bb(2))*sqrt(1/Bb(3))
+qRc = (sqrt(%pi)/sigmac)*(k*T/(h*c*100))**(3./2)*sqrt(1/Bc(1))*sqrt(1/Bc(2))*sqrt(1/Bc(3))
+
+//Results
+printf("\n Rotation partition function for OCS, ONCI, CH2O at %4.0f K are %4.0f, %4.0f, and %4.0f respectively",T,qRa,qRb,qRc)
+