diff options
Diffstat (limited to '24/CH42/EX42.7/Example42_7.sce')
-rwxr-xr-x | 24/CH42/EX42.7/Example42_7.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/24/CH42/EX42.7/Example42_7.sce b/24/CH42/EX42.7/Example42_7.sce new file mode 100755 index 000000000..d023ef08e --- /dev/null +++ b/24/CH42/EX42.7/Example42_7.sce @@ -0,0 +1,9 @@ +//Given that
+Egap = 1.9 //in eV
+
+//Sample Problem 42-7
+pt = mopen('Example42_7_result.txt', 'wt')
+mfprintf(pt, '**Sample Problem 42-7**\n')
+lambada = 1242/Egap
+mfprintf(pt, 'The wavelength emitted is equal to %dnm', lambada)
+mclose(pt)
\ No newline at end of file |