diff options
Diffstat (limited to '2243/CH4/EX4.10/Ex4_10.sce')
-rwxr-xr-x | 2243/CH4/EX4.10/Ex4_10.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/2243/CH4/EX4.10/Ex4_10.sce b/2243/CH4/EX4.10/Ex4_10.sce new file mode 100755 index 000000000..5cdf41a53 --- /dev/null +++ b/2243/CH4/EX4.10/Ex4_10.sce @@ -0,0 +1,12 @@ +clc();
+clear;
+//Given:
+N = 15000;//Number of lines per inch
+a_plus_b = (2.54/N)*10^8 ;//Grating period in A
+lambda = 1 ; //Wavelength in A
+//Grating equation :(a+b)*sin(theta_n) = n*lambda
+//First order maximum
+theta1 = asind(lambda/a_plus_b); // angle in degrees
+printf("The first order maximum will be obtained at : %.4f degrees .\n\n",theta1);
+
+
|