summaryrefslogtreecommitdiff
path: root/3869/CH1/EX1.27/Ex1_27.sce
diff options
context:
space:
mode:
Diffstat (limited to '3869/CH1/EX1.27/Ex1_27.sce')
-rw-r--r--3869/CH1/EX1.27/Ex1_27.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/3869/CH1/EX1.27/Ex1_27.sce b/3869/CH1/EX1.27/Ex1_27.sce
new file mode 100644
index 000000000..0b486c5e5
--- /dev/null
+++ b/3869/CH1/EX1.27/Ex1_27.sce
@@ -0,0 +1,25 @@
+clear
+//
+//
+//
+
+//Variable declaration
+t=500*10**-9 //thickness(m)
+n1=0
+n2=1
+n3=2
+n4=3
+mew=1.33 //refractive index
+
+//Calculation
+lamda1=4*mew*t/((2*n1)+1) //wavelength in infrared region(m)
+lamda2=4*mew*t/((2*n2)+1) //wavelength in infrared region(m)
+lamda3=4*mew*t/((2*n3)+1) //wavelength in visible region(m)
+lamda4=4*mew*t/((2*n4)+1) //wavelength in ultraviolet region(m)
+
+//Result
+printf("\n wavelength in infrared region is %0.0f *10**-10 m",lamda1*10**10)
+printf("\n wavelength in infrared region is %0.1f *10**-10 m",lamda2*10**10)
+printf("\n wavelength in visible region is %0.0f *10**-10 m",lamda3*10**10)
+printf("\n wavelength in ultraviolet region is %0.0f *10**-10 m",lamda4*10**10)
+printf("\n of all the wavelengths reflected %0.3f angstrom is the wavelength in the visible region",lamda3*10**10)