blob: 51b024fa4ddc5181d2fb5ca51862672e0596a177 (
plain)
1
2
3
4
5
6
7
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')
|