summaryrefslogtreecommitdiff
path: root/3718/CH2/EX2.5/Ex2_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3718/CH2/EX2.5/Ex2_5.sce')
-rw-r--r--3718/CH2/EX2.5/Ex2_5.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3718/CH2/EX2.5/Ex2_5.sce b/3718/CH2/EX2.5/Ex2_5.sce
new file mode 100644
index 000000000..c37fde230
--- /dev/null
+++ b/3718/CH2/EX2.5/Ex2_5.sce
@@ -0,0 +1,18 @@
+//Chapter 2: Spectroscopy and Photochemistry
+//Problem: 5
+clc;
+
+//Declaration of Constants
+pi = 3.141 // Pi
+c = 3 * 10 ** 10 // Speed of light,in cm/s
+
+//Declaration of Variables
+v_bar = 2140 // Fundamental vibrating freq, per cm
+m_C = 19.9 * 10 ** -27 // Atomic mass of C,in kg
+m_O = 26.6 * 10 ** -27 // Atomic mass of O,in kg
+
+// Solution
+mu = m_O * m_C / (m_C + m_O)
+k = 4 * (pi * c * v_bar) ** 2 * mu
+
+mprintf("The force constant of the molecule is %.3e N/m",k)