summaryrefslogtreecommitdiff
path: root/1865/CH3/EX3.5/prob_5.sce
blob: ff690addafcf37ff3035daf60595183bc17ab7b4 (plain)
1
2
3
4
5
6
7
8
9
10
11

//Problem 5
//calculate the glancing angle for third order reflection
clear
clc
w=0.842*(10)^(-10)//wavelength in m
x=8.5833//glancing angle(in degrees) for the first order reflection
a=1,b=3//a=1 for 1st order b=3 for 3rd order reflection
d=(a*w)/(2*sind(x))//inerplanar spacing for first order reflection
y=asind((b*w)/(2*d))
printf('Glancing angle for the third order reflection = %.2f degrees',y)