summaryrefslogtreecommitdiff
path: root/3411/CH1/EX1.12/Ex1_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '3411/CH1/EX1.12/Ex1_12.sce')
-rw-r--r--3411/CH1/EX1.12/Ex1_12.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3411/CH1/EX1.12/Ex1_12.sce b/3411/CH1/EX1.12/Ex1_12.sce
new file mode 100644
index 000000000..27043d537
--- /dev/null
+++ b/3411/CH1/EX1.12/Ex1_12.sce
@@ -0,0 +1,14 @@
+//Example 1.12
+clc();
+clear;
+//To calculate the wavelength of the light used
+Dnp=0.8 //units in cm
+Dn=0.3 //units in cm
+n1=25
+n2=5
+p=n1-n2
+R=100 //units in cm
+lamda=(Dnp^2-Dn^2)/(4*p*R) //units in cm
+printf("The wavelength of light used is %.8fcm",lamda)
+//In text book the answer is printed wrong as 4.87*10^-5cm
+//correct Answer is 6.875*10^-5cm