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 --- 1026/CH8/EX8.16/Example8_16.sce | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 1026/CH8/EX8.16/Example8_16.sce (limited to '1026/CH8/EX8.16/Example8_16.sce') diff --git a/1026/CH8/EX8.16/Example8_16.sce b/1026/CH8/EX8.16/Example8_16.sce new file mode 100755 index 000000000..955ff3493 --- /dev/null +++ b/1026/CH8/EX8.16/Example8_16.sce @@ -0,0 +1,29 @@ +//chapter8,Example8_16,pg 209 + +n=2 + +grat=1/5000//transmission grating + +lam=5893*10^-8 + +dtheta=(2.5*3.14)/(180*60)//change in angular displacement(in radian) + +//(a+b)=grat + +//dlam=((a+b)cos(theta)/n)dtheta + +cos(theta)=sqrt(1-(((n*lam)/grat)^2)) + +dlam=(dtheta*grat*cos(theta))/n//difference in wavelength + +f=30//focal length + +dl=f*dtheta//linear separation + +printf("difference between two yellow lines (in cm)\n") + +disp(dlam) + +printf("\nlinear separation\n") + +printf("dl=%.4f cm",dl) \ No newline at end of file -- cgit