summaryrefslogtreecommitdiff
path: root/3020/CH11/EX11.1/ex11_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3020/CH11/EX11.1/ex11_1.sce')
-rwxr-xr-x3020/CH11/EX11.1/ex11_1.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/3020/CH11/EX11.1/ex11_1.sce b/3020/CH11/EX11.1/ex11_1.sce
new file mode 100755
index 000000000..51b024fa4
--- /dev/null
+++ b/3020/CH11/EX11.1/ex11_1.sce
@@ -0,0 +1,8 @@
+clc;
+clear all;
+lambda = 5900e-10; // Wavelength of the sodium D line in meters
+c = 3e8;// Velocity of air
+h = 6.626e-34; // Plancks constant
+e = 1.602e-19; // Charge of an electron
+E = (h*c)/(lambda*e);
+disp('eV',E,'The energy of the first excited state is')