summaryrefslogtreecommitdiff
path: root/3869/CH6/EX6.15/Ex6_15.sce
blob: f0b4c04c8e6fd3fbb259553ae8fba9c7ca3515fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear
//
//
//

//Variable declaration
lamda=0.82      //wavelength(m)
theta=75.86*%pi/180    //glancing angle(radian)
n=1                     //order
a=3                     //lattice constant(angstrom)

//Calculation
d=n*lamda/(2*sin(theta))      //space of reflecting plane(angstrom)
//here the value of d comes to 0.422 angstrom which is not equal to the value of a. hence the problem cannot be solved further 

//Result
printf("\n space of reflecting plane is %0.2f  angstrom",d)
printf("\n answer given in the book is wrong")