summaryrefslogtreecommitdiff
path: root/1004/CH2/EX2.18/Ch02Ex18.sci
blob: b1de57b9143eb5a8f28296f1aeda75f9af420cc5 (plain)
1
2
3
4
5
6
7
8
// Scilab Code Ex2.18 Energy difference in the emission or absorption of sodium D1 line: Pg:58 (2008)s
h = 6.624e-034;    // Planck's Constant, Js
c = 3e+08;    // Speed of light, m/s
L = 590e-09;    // Wavelenght of sodium D1 line, m
E = h*c/L;    // Energy difference in the emission or absorption of sodium D1 line, J
printf("\nThe energy difference in the emission or absorption of sodium D1 line = %4.2e J", E);
// Result 
// The energy difference in the emission or absorption of sodium D1 line = 3.37e-019 J