blob: d40ad9d249eb72d66bfc597438b53b9fb8047d78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//Example 5_7
clc();
clear;
//To find the wavelength whenthese planes give rise to maximum density in reflection
d=275 //units in pm
theta=45 //units in degrees
//For n=1
n=1
lamda=(2*d*sin(theta*(%pi/180)))/n //units in pm
printf("Wavelength for n=1 is lamda=%.1fpm\n",lamda)
//For n=2
n=2
lamda=(2*d*sin(theta*(%pi/180)))/n //units in pm
printf("Wavelength for n=1 is lamda=%.1fpm\n",lamda)
//For n=3
n=3
lamda=(2*d*sin(theta*(%pi/180)))/n //units in pm
printf("Wavelength for n=1 is lamda=%.1fpm\n",lamda)
//For n=4
n=4
lamda=(2*d*sin(theta*(%pi/180)))/n //units in pm
printf("Wavelength for n=1 is lamda=%.1fpm\n",lamda)
//For n=5
n=5
lamda=(2*d*sin(theta*(%pi/180)))/n //units in pm
printf("Wavelength for n=1 is lamda=%.1fpm\n",lamda)
printf("For n=1,2,3 and >5 lamda lies beyond the range of wavelengths of polychromatic source")
|