blob: 3b29a034a155267ece24abc755952a3a7a789fc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
//given that
lambda = 3.6e-9 // Wavelength in cm
theta = 4.8 // glancing angle in degree
n = 1 // order
printf("Example 3.4")
d = n*lambda/(2*sin(theta*%pi/180)) // calculation of crystal spacing in angstrom
printf("\n Crystal spacing in angstrom is %e cm. \n\n\n",d)
|