summaryrefslogtreecommitdiff
path: root/2243/CH4/EX4.10/Ex4_10.sce
blob: 5cdf41a53f8e8c9159390950ce1b66f03ef56be1 (plain)
1
2
3
4
5
6
7
8
9
10
11
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);