From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2780/CH3/EX3.22/Ex3_22.sce | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 2780/CH3/EX3.22/Ex3_22.sce (limited to '2780/CH3/EX3.22') 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") -- cgit