summaryrefslogtreecommitdiff
path: root/623/CH27/EX5.5.6/U5_C5_6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /623/CH27/EX5.5.6/U5_C5_6.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '623/CH27/EX5.5.6/U5_C5_6.sce')
-rwxr-xr-x623/CH27/EX5.5.6/U5_C5_6.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/623/CH27/EX5.5.6/U5_C5_6.sce b/623/CH27/EX5.5.6/U5_C5_6.sce
new file mode 100755
index 000000000..5ed6e1bd6
--- /dev/null
+++ b/623/CH27/EX5.5.6/U5_C5_6.sce
@@ -0,0 +1,9 @@
+//variable initialization
+mu=8.37*10^-28; //Reducec mass of hydrogen molecule (kg)
+h=6.58*10^-16; //Plank's constant (eV s)
+E0=0.273 //Ground state vibrational energy of hydrogen molecule (eV)
+
+//calculation of force constant of the molecule
+k=mu*((2*E0)/h)^2; //force constant of hydrogen molecule (N/m)
+
+printf("\n Force constant = %.0f N/m",k);