summaryrefslogtreecommitdiff
path: root/2780/CH3/EX3.22/Ex3_22.sce
diff options
context:
space:
mode:
Diffstat (limited to '2780/CH3/EX3.22/Ex3_22.sce')
-rwxr-xr-x2780/CH3/EX3.22/Ex3_22.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/2780/CH3/EX3.22/Ex3_22.sce b/2780/CH3/EX3.22/Ex3_22.sce
new file mode 100755
index 000000000..1b56e2b62
--- /dev/null
+++ b/2780/CH3/EX3.22/Ex3_22.sce
@@ -0,0 +1,10 @@
+clc
+//to calculate difference in the two wavelengths
+//grating equation for principal maxima is (e+d)*sintheta=n*lambda...............eq(1)
+//differentiate both sides ,we get dtheta=n*dlambda/((e+d)*costheta)...........eq(2)
+lambda=5000 //mean value of wavelengths in angstrom
+cottheta=1.732 //cot30degree=1.732
+dtheta=0.01 //in radian
+//put the value of n from eq(2),we can write eq(2)
+dlambda=lambda*dtheta*cottheta
+disp("difference in two wavelengths is dlambda="+string(dlambda)+"angstrom")