summaryrefslogtreecommitdiff
path: root/884/CH7/EX7.4/Example7_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '884/CH7/EX7.4/Example7_4.sce')
-rwxr-xr-x884/CH7/EX7.4/Example7_4.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/884/CH7/EX7.4/Example7_4.sce b/884/CH7/EX7.4/Example7_4.sce
new file mode 100755
index 000000000..adee9ac51
--- /dev/null
+++ b/884/CH7/EX7.4/Example7_4.sce
@@ -0,0 +1,18 @@
+//calculation of wavelength of a photon from an electronic transition
+
+clear;
+clc;
+
+printf("\t Example 7.4\n");
+
+c=3*10^8;//speed of light in vacuum, m/s
+h=6.63*10^-34;//planck's constant, J s
+Rh=2.18*10^-18;//rydberg's constant, J
+ni=5;//initial orbit
+nf=2;//final orbit
+deltaE=Rh*(1/ni^2-1/nf^2);
+lambda=c*h/-deltaE;
+
+printf("\t the wavelength of the photon is : %4.0f nm\n",lambda*10^9);
+
+//End