summaryrefslogtreecommitdiff
path: root/24/CH42/EX42.7
diff options
context:
space:
mode:
Diffstat (limited to '24/CH42/EX42.7')
-rwxr-xr-x24/CH42/EX42.7/Example42_7.sce9
-rwxr-xr-x24/CH42/EX42.7/Example42_7_result.txt2
2 files changed, 11 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
diff --git a/24/CH42/EX42.7/Example42_7_result.txt b/24/CH42/EX42.7/Example42_7_result.txt
new file mode 100755
index 000000000..fb5ced8d6
--- /dev/null
+++ b/24/CH42/EX42.7/Example42_7_result.txt
@@ -0,0 +1,2 @@
+**Sample Problem 42-7**
+The wavelength emitted is equal to 653nm \ No newline at end of file