summaryrefslogtreecommitdiff
path: root/2243/CH14/EX14.3/Ex14_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '2243/CH14/EX14.3/Ex14_3.sce')
-rwxr-xr-x2243/CH14/EX14.3/Ex14_3.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2243/CH14/EX14.3/Ex14_3.sce b/2243/CH14/EX14.3/Ex14_3.sce
new file mode 100755
index 000000000..7651373bc
--- /dev/null
+++ b/2243/CH14/EX14.3/Ex14_3.sce
@@ -0,0 +1,14 @@
+clc();
+clear;
+//Given :
+L =8;// in cm
+lambda = 5330; //wavelength in A
+// lambda = 2*L/n
+// 1 A = 1.0*10^-8 cm
+n= (2*L)/(lambda*10^-8); // allowed modes
+//adjacent mode
+n1 = round(n+1);
+// 1 cm = 1.0*10^8 A
+lambda1 = ((2*L)/n1)*10^8;// wavelength in A
+D = lambda-lambda1; // difference in wavelengths in A
+printf("Difference = %.3f A",D);