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 /1004/CH7 | |
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 '1004/CH7')
-rwxr-xr-x | 1004/CH7/EX7.1/Ch07Ex1.sci | 8 | ||||
-rwxr-xr-x | 1004/CH7/EX7.2/Ch07Ex2.sci | 11 | ||||
-rwxr-xr-x | 1004/CH7/EX7.3/Ch07Ex3.sci | 13 | ||||
-rwxr-xr-x | 1004/CH7/EX7.4/Ch07Ex4.sci | 13 |
4 files changed, 45 insertions, 0 deletions
diff --git a/1004/CH7/EX7.1/Ch07Ex1.sci b/1004/CH7/EX7.1/Ch07Ex1.sci new file mode 100755 index 000000000..207935d0a --- /dev/null +++ b/1004/CH7/EX7.1/Ch07Ex1.sci @@ -0,0 +1,8 @@ +// Scilab code: Ex7.1 : Frequency of oscillation of a hydrogen molecule: Pg: 170 (2008)
+K = 4.8e+02; // Force constant, N/m
+m = 1.67e-027; // Mass of hydrogen atom, kg
+mu = m/2; // Reduced mass of the system, kg
+v = 1/(2*%pi)*sqrt(K/mu); // Frequency of oscillation of a hydrogen molecule, Hz
+printf("\nThe frequency of oscillation of a hydrogen molecule = %3.1e Hz", v);
+// Result
+// The frequency of oscillation of a hydrogen molecule = 1.2e+014 Hz
\ No newline at end of file diff --git a/1004/CH7/EX7.2/Ch07Ex2.sci b/1004/CH7/EX7.2/Ch07Ex2.sci new file mode 100755 index 000000000..4d1de319b --- /dev/null +++ b/1004/CH7/EX7.2/Ch07Ex2.sci @@ -0,0 +1,11 @@ +// Scilab code: Ex7.2: bond Length of carbon monoxide: Pg: 170 (2008)
+h = 6.626e-034; // Planck's constant, Js
+c = 2.997e+010; // Speed of light, cm/s
+B = 1.921; // Rotational constant for CO, per cm
+nu_bar = 2*B; // Wavenumber of first line in rotation spectra of CO, per cm
+mu = 11.384e-027; // Reduced mass of the CO system, per cm
+I = 2*h/(8*%pi^2*nu_bar*c); // Moment of inertia of CO molecule about the axis of rotation, kg-m/s
+r = sqrt(I/mu); // Bond length of CO molecule, m
+printf("\nThe bond length of CO molecule = %5.2f angstrom", r/1e-010);
+// Result
+// The bond length of CO molecule = 1.13 angstrom
\ No newline at end of file diff --git a/1004/CH7/EX7.3/Ch07Ex3.sci b/1004/CH7/EX7.3/Ch07Ex3.sci new file mode 100755 index 000000000..25ab1243a --- /dev/null +++ b/1004/CH7/EX7.3/Ch07Ex3.sci @@ -0,0 +1,13 @@ +// Scilab code: Ex7.3: Intensity ratio of J states for HCL molecule: Pg: 171 (2008)
+e = 1.6e-019; // Energy equivalent of 1 eV, J/eV
+K = 1.38e-23; // Boltzmann constant, J/K
+T = 300; // Absolute room temperature, K
+J1 = 0; // Rotational quantum number for ground level
+J2 = 10; // Rotational quantum number for 10th level
+EJ1 = J1*(J1+1)*1.3e-03; // Energy of ground level of HCL molecule, eV
+EJ2 = J2*(J2+1)*1.3e-03; // Energy of 10th level of HCL molecule, eV
+// As n10/n0 is propotional to (2J+1)*exp(-(EJ2-EJ1))/KT, so
+I_ratio = (2*J2+1)/(2*J1+1)*exp(-(EJ2 - EJ1)/(K*T/e)); // Intensity ratio of J10 and J1 states
+printf("\nThe intensity ratio of J-states for HCL molecule = %4.2f", I_ratio);
+// Result
+// The intensity ratio of J-states for HCL molecule = 0.08
diff --git a/1004/CH7/EX7.4/Ch07Ex4.sci b/1004/CH7/EX7.4/Ch07Ex4.sci new file mode 100755 index 000000000..cff65008f --- /dev/null +++ b/1004/CH7/EX7.4/Ch07Ex4.sci @@ -0,0 +1,13 @@ +// Scilab code: Ex7.4: CO molecule in lower state: Pg: 171 (2008)
+R = 1.13e-010; // Bond length of CO molecule, m
+h_red = 1.054e-034; // Reduced Planck's constant, Js
+mu = 1.14e-026; // Reduced mass ofthe system, kg
+J = 1; // Rotational quantum number for lowest state
+I = mu*R^2; // Moment of inertia of CO molecule about the axis of rotation, kg-metre square
+EJ = J*(J + 1)*h_red^2/(2*I); // Energy of the CO molecule in the lowest state, J
+omega = sqrt(2*EJ/I); // Angular velocity of the CO molecule in the lowest state, rad per sec
+printf("\nThe energy of the CO molecule in the lowest state = %4.2e J", EJ);
+printf("\nThe angular velocity of the CO molecule in the lowest state = %4.2e rad/sec", omega);
+// Result
+// The energy of the CO molecule in the lowest state = 7.63e-023 J
+// The angular velocity of the CO molecule in the lowest state = 1.02e+012 rad/sec
\ No newline at end of file |