diff options
Diffstat (limited to '1847/CH8/EX8.2/Ch08Ex2.sce')
-rwxr-xr-x | 1847/CH8/EX8.2/Ch08Ex2.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1847/CH8/EX8.2/Ch08Ex2.sce b/1847/CH8/EX8.2/Ch08Ex2.sce new file mode 100755 index 000000000..baf3bd521 --- /dev/null +++ b/1847/CH8/EX8.2/Ch08Ex2.sce @@ -0,0 +1,12 @@ +// Scilab Code Ex8.2:: Page-8.8 (2009)
+clc; clear;
+E = 0.121; // Energy difference between the two levels, eV
+lambda = 12400/E; // Wavelength of the radiation, angstrom
+f = 3e+08/(lambda*1e-010); // Frequency of the radiation, Hz
+
+printf("\nThe wavelength of the radiation = %8.1f angstrom", lambda);
+printf("\nThe frequency of the radiation = %4.2e Hz", f);
+
+// Result
+// The wavelength of the radiation = 102479.3 angstrom
+// The frequency of the radiation = 2.93e+13 Hz
|